target-def.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* Default initializers for a generic GCC target.
  2. Copyright (C) 2001-2015 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING3. If not see
  13. <http://www.gnu.org/licenses/>.
  14. In other words, you are welcome to use, share and improve this program.
  15. You are forbidden to forbid anyone else to use, share and improve
  16. what you give them. Help stamp out software-hoarding! */
  17. /* See target.def for a description of what this file contains and how to
  18. use it.
  19. We want to have non-NULL default definitions of all hook functions,
  20. even if they do nothing. */
  21. /* Note that if one of these macros must be defined in an OS .h file
  22. rather than the .c file, then we need to wrap the default
  23. definition in a #ifndef, since files include tm.h before this one. */
  24. #define TARGET_ASM_ALIGNED_HI_OP "\t.short\t"
  25. #define TARGET_ASM_ALIGNED_SI_OP "\t.long\t"
  26. #define TARGET_ASM_ALIGNED_DI_OP NULL
  27. #define TARGET_ASM_ALIGNED_TI_OP NULL
  28. /* GAS and SYSV4 assemblers accept these. */
  29. #if defined (OBJECT_FORMAT_ELF)
  30. #define TARGET_ASM_UNALIGNED_HI_OP "\t.2byte\t"
  31. #define TARGET_ASM_UNALIGNED_SI_OP "\t.4byte\t"
  32. #define TARGET_ASM_UNALIGNED_DI_OP "\t.8byte\t"
  33. #define TARGET_ASM_UNALIGNED_TI_OP NULL
  34. #else
  35. #define TARGET_ASM_UNALIGNED_HI_OP NULL
  36. #define TARGET_ASM_UNALIGNED_SI_OP NULL
  37. #define TARGET_ASM_UNALIGNED_DI_OP NULL
  38. #define TARGET_ASM_UNALIGNED_TI_OP NULL
  39. #endif /* OBJECT_FORMAT_ELF */
  40. #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2)
  41. # ifdef CTORS_SECTION_ASM_OP
  42. # define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor
  43. # else
  44. # ifdef TARGET_ASM_NAMED_SECTION
  45. # define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
  46. # else
  47. # define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
  48. # endif
  49. # endif
  50. #endif
  51. #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2)
  52. # ifdef DTORS_SECTION_ASM_OP
  53. # define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor
  54. # else
  55. # ifdef TARGET_ASM_NAMED_SECTION
  56. # define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
  57. # else
  58. # define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
  59. # endif
  60. # endif
  61. #endif
  62. #if !defined(TARGET_HAVE_CTORS_DTORS)
  63. # if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
  64. # define TARGET_HAVE_CTORS_DTORS true
  65. # endif
  66. #endif
  67. #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
  68. #ifdef EH_FRAME_SECTION_NAME
  69. #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
  70. #endif
  71. #endif
  72. #if !defined(TARGET_ASM_OUTPUT_ANCHOR) && !defined(ASM_OUTPUT_DEF)
  73. #define TARGET_ASM_OUTPUT_ANCHOR NULL
  74. #endif
  75. #define TARGET_ASM_ALIGNED_INT_OP \
  76. {TARGET_ASM_ALIGNED_HI_OP, \
  77. TARGET_ASM_ALIGNED_SI_OP, \
  78. TARGET_ASM_ALIGNED_DI_OP, \
  79. TARGET_ASM_ALIGNED_TI_OP}
  80. #define TARGET_ASM_UNALIGNED_INT_OP \
  81. {TARGET_ASM_UNALIGNED_HI_OP, \
  82. TARGET_ASM_UNALIGNED_SI_OP, \
  83. TARGET_ASM_UNALIGNED_DI_OP, \
  84. TARGET_ASM_UNALIGNED_TI_OP}
  85. #if !defined (TARGET_FUNCTION_INCOMING_ARG)
  86. #define TARGET_FUNCTION_INCOMING_ARG TARGET_FUNCTION_ARG
  87. #endif
  88. #include "target-hooks-def.h"
  89. #include "hooks.h"
  90. #include "targhooks.h"