tm-vms.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Output variables, constants and external declarations, for GNU compiler.
  2. Copyright (C) 1988 Free Software Foundation, Inc.
  3. This file is part of GNU CC.
  4. GNU CC is distributed in the hope that it will be useful,
  5. but WITHOUT ANY WARRANTY. No author or distributor
  6. accepts responsibility to anyone for the consequences of using it
  7. or for whether it serves any particular purpose or works at all,
  8. unless he says so in writing. Refer to the GNU CC General Public
  9. License for full details.
  10. Everyone is granted permission to copy, modify and redistribute
  11. GNU CC, but only under the conditions described in the
  12. GNU CC General Public License. A copy of this license is
  13. supposed to have been given to you along with GNU CC so you
  14. can know your rights and responsibilities. It should be in a
  15. file named COPYING. Among other things, the copyright notice
  16. and this notice must be preserved on all copies. */
  17. #include "tm-vax.h"
  18. #undef CPP_PREDEFINES
  19. #undef TARGET_VERSION
  20. #undef TARGET_DEFAULT
  21. #undef CALL_USED_REGISTERS
  22. #undef MAYBE_VMS_FUNCTION_PROLOGUE
  23. /* Predefine this in CPP because VMS limits the size of command options
  24. and GNU CPP is not used on VMS except with GNU C. */
  25. #define CPP_PREDEFINES "-Dvax -Dvms -DVMS -D__GNU__ -D__GNUC__"
  26. #define TARGET_DEFAULT 1
  27. #define TARGET_VERSION printf ("(vax vms)");
  28. #define CALL_USED_REGISTERS {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1}
  29. #define MAYBE_VMS_FUNCTION_PROLOGUE(FILE) \
  30. { extern char *current_function_name; \
  31. if (!strcmp ("main", current_function_name)) \
  32. fprintf(FILE, "\tjsb _c$main_args\n"); }
  33. #define ASM_OUTPUT_EXTERNAL(FILE,DECL,NAME) \
  34. { if (DECL_INITIAL (DECL) == 0 && TREE_CODE (DECL) != FUNCTION_DECL) \
  35. fprintf (FILE, ".comm _%s,0\n", NAME); }