00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #define TARGET_VERSION fprintf (stderr, " (IA-64) HP-UX");
00027
00028
00029
00030
00031
00032 #define TARGET_OS_CPP_BUILTINS() \
00033 do { \
00034 builtin_assert("system=hpux"); \
00035 builtin_assert("system=posix"); \
00036 builtin_assert("system=unix"); \
00037 builtin_define_std("hpux"); \
00038 builtin_define_std("unix"); \
00039 builtin_define("__IA64__"); \
00040 builtin_define("_LONGLONG"); \
00041 builtin_define("_UINT128_T"); \
00042 builtin_define("__fpreg=long double"); \
00043 builtin_define("__float80=long double"); \
00044 builtin_define("__float128=long double"); \
00045 if (c_language == clk_cplusplus || !flag_iso) \
00046 { \
00047 builtin_define("_HPUX_SOURCE"); \
00048 builtin_define("__STDC_EXT__"); \
00049 } \
00050 } while (0)
00051
00052 #undef ASM_EXTRA_SPEC
00053 #define ASM_EXTRA_SPEC "%{milp32:-milp32} %{mlp64:-mlp64}"
00054
00055 #undef ENDFILE_SPEC
00056
00057 #undef STARTFILE_SPEC
00058 #define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s}}"
00059
00060 #undef LINK_SPEC
00061 #define LINK_SPEC \
00062 "+Accept TypeMismatch \
00063 %{shared:-b} \
00064 %{!shared: \
00065 -u main \
00066 %{static:-noshared}}"
00067
00068 #undef LIB_SPEC
00069 #define LIB_SPEC \
00070 "%{!shared: \
00071 %{p:%{!mlp64:-L/usr/lib/hpux32/libp} \
00072 %{mlp64:-L/usr/lib/hpux64/libp} -lprof} \
00073 %{pg:%{!mlp64:-L/usr/lib/hpux32/libp} \
00074 %{mlp64:-L/usr/lib/hpux64/libp} -lgprof} \
00075 %{!symbolic:-lc}}"
00076
00077 #ifndef CROSS_COMPILE
00078 #undef LIBGCC_SPEC
00079 #define LIBGCC_SPEC \
00080 "%{shared-libgcc:%{!mlp64:-lgcc_s_hpux32}%{mlp64:-lgcc_s_hpux64} -lgcc} \
00081 %{!shared-libgcc:-lgcc}"
00082 #endif
00083
00084 #undef SUBTARGET_SWITCHES
00085 #define SUBTARGET_SWITCHES \
00086 { "ilp32", MASK_ILP32, "Generate ILP32 code" }, \
00087 { "lp64", -MASK_ILP32, "Generate LP64 code" },
00088
00089
00090
00091
00092
00093
00094 #define POINTERS_EXTEND_UNSIGNED -1
00095
00096 #define JMP_BUF_SIZE (8 * 76)
00097
00098 #undef TARGET_DEFAULT
00099 #define TARGET_DEFAULT (MASK_DWARF2_ASM | MASK_BIG_ENDIAN | MASK_ILP32)
00100
00101
00102
00103
00104
00105
00106
00107 #define MEMBER_TYPE_FORCES_BLK(FIELD, MODE) (TREE_CODE (TREE_TYPE (FIELD)) != REAL_TYPE || (MODE == TFmode && !INTEL_EXTENDED_IEEE_FORMAT))
00108
00109
00110
00111
00112
00113 #undef ASM_OUTPUT_EXTERNAL_LIBCALL
00114 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
00115 do { \
00116 (*targetm.asm_out.globalize_label) (FILE, XSTR (FUN, 0)); \
00117 ASM_OUTPUT_TYPE_DIRECTIVE (FILE, XSTR (FUN, 0), "function"); \
00118 } while (0)
00119
00120 #undef FUNCTION_ARG_PADDING
00121 #define FUNCTION_ARG_PADDING(MODE, TYPE) \
00122 ia64_hpux_function_arg_padding ((MODE), (TYPE))
00123
00124 #undef PAD_VARARGS_DOWN
00125 #define PAD_VARARGS_DOWN (!AGGREGATE_TYPE_P (type))
00126
00127 #define REGISTER_TARGET_PRAGMAS(PFILE) \
00128 cpp_register_pragma (PFILE, 0, "builtin", ia64_hpux_handle_builtin_pragma)
00129
00130
00131
00132
00133
00134 #undef TARGET_HPUX_LD
00135 #define TARGET_HPUX_LD 1
00136
00137
00138
00139 #define ASM_FILE_END(STREAM) ia64_hpux_asm_file_end(STREAM)
00140
00141 #undef CTORS_SECTION_ASM_OP
00142 #define CTORS_SECTION_ASM_OP "\t.section\t.init_array,\t\"aw\",\"init_array\""
00143
00144 #undef DTORS_SECTION_ASM_OP
00145 #define DTORS_SECTION_ASM_OP "\t.section\t.fini_array,\t\"aw\",\"fini_array\""
00146
00147 #undef READONLY_DATA_SECTION_ASM_OP
00148 #define READONLY_DATA_SECTION_ASM_OP "\t.section\t.rodata,\t\"a\",\t\"progbits\""
00149
00150 #undef DATA_SECTION_ASM_OP
00151 #define DATA_SECTION_ASM_OP "\t.section\t.data,\t\"aw\",\t\"progbits\""
00152
00153 #undef SDATA_SECTION_ASM_OP
00154 #define SDATA_SECTION_ASM_OP "\t.section\t.sdata,\t\"asw\",\t\"progbits\""
00155
00156 #undef BSS_SECTION_ASM_OP
00157 #define BSS_SECTION_ASM_OP "\t.section\t.bss,\t\"aw\",\t\"nobits\""
00158
00159 #undef SBSS_SECTION_ASM_OP
00160 #define SBSS_SECTION_ASM_OP "\t.section\t.sbss,\t\"asw\",\t\"nobits\""
00161
00162 #undef TEXT_SECTION_ASM_OP
00163 #define TEXT_SECTION_ASM_OP "\t.section\t.text,\t\"ax\",\t\"progbits\""
00164
00165
00166
00167 #undef TARGET_ASM_SELECT_SECTION
00168 #define TARGET_ASM_SELECT_SECTION ia64_rwreloc_select_section
00169 #undef TARGET_ASM_UNIQUE_SECTION
00170 #define TARGET_ASM_UNIQUE_SECTION ia64_rwreloc_unique_section
00171 #undef TARGET_ASM_SELECT_RTX_SECTION
00172 #define TARGET_ASM_SELECT_RTX_SECTION ia64_rwreloc_select_rtx_section
00173 #undef TARGET_SECTION_TYPE_FLAGS
00174 #define TARGET_SECTION_TYPE_FLAGS ia64_rwreloc_section_type_flags