OSDN Git Service

* config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / sysv4.h
1 /* Target definitions for GNU compiler for PowerPC running System V.4
2    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
3    Free Software Foundation, Inc.
4    Contributed by Cygnus Support.
5
6    This file is part of GCC.
7
8    GCC is free software; you can redistribute it and/or modify it
9    under the terms of the GNU General Public License as published
10    by the Free Software Foundation; either version 2, or (at your
11    option) any later version.
12
13    GCC is distributed in the hope that it will be useful, but WITHOUT
14    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16    License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with GCC; see the file COPYING.  If not, write to the
20    Free Software Foundation, 59 Temple Place - Suite 330, Boston,
21    MA 02111-1307, USA.  */
22
23 /* Header files should be C++ aware in general.  */
24 #define NO_IMPLICIT_EXTERN_C
25
26 /* Yes!  We are ELF.  */
27 #define TARGET_OBJECT_FORMAT OBJECT_ELF
28
29 /* Default ABI to compile code for.  */
30 #define DEFAULT_ABI rs6000_current_abi
31
32 /* Default ABI to use.  */
33 #define RS6000_ABI_NAME "sysv"
34
35 /* Override rs6000.h definition.  */
36 #undef  ASM_DEFAULT_SPEC
37 #define ASM_DEFAULT_SPEC "-mppc"
38
39 /* Small data support types.  */
40 enum rs6000_sdata_type {
41   SDATA_NONE,                   /* No small data support.  */
42   SDATA_DATA,                   /* Just put data in .sbss/.sdata, don't use relocs.  */
43   SDATA_SYSV,                   /* Use r13 to point to .sdata/.sbss.  */
44   SDATA_EABI                    /* Use r13 like above, r2 points to .sdata2/.sbss2.  */
45 };
46
47 extern enum rs6000_sdata_type rs6000_sdata;
48
49 /* V.4/eabi switches.  */
50 #define MASK_NO_BITFIELD_TYPE   0x40000000      /* Set PCC_BITFIELD_TYPE_MATTERS to 0.  */
51 #define MASK_STRICT_ALIGN       0x20000000      /* Set STRICT_ALIGNMENT to 1.  */
52 #define MASK_RELOCATABLE        0x10000000      /* GOT pointers are PC relative.  */
53 #define MASK_EABI               0x08000000      /* Adhere to eabi, not System V spec.  */
54 #define MASK_LITTLE_ENDIAN      0x04000000      /* Target is little endian.  */
55 #define MASK_REGNAMES           0x02000000      /* Use alternate register names.  */
56 #define MASK_PROTOTYPE          0x01000000      /* Only prototyped fcns pass variable args.  */
57 #define MASK_NO_BITFIELD_WORD   0x00800000      /* Bitfields cannot cross word boundaries */
58
59 #define TARGET_NO_BITFIELD_TYPE (target_flags & MASK_NO_BITFIELD_TYPE)
60 #define TARGET_STRICT_ALIGN     (target_flags & MASK_STRICT_ALIGN)
61 #define TARGET_RELOCATABLE      (target_flags & MASK_RELOCATABLE)
62 #define TARGET_EABI             (target_flags & MASK_EABI)
63 #define TARGET_LITTLE_ENDIAN    (target_flags & MASK_LITTLE_ENDIAN)
64 #define TARGET_REGNAMES         (target_flags & MASK_REGNAMES)
65 #define TARGET_PROTOTYPE        (target_flags & MASK_PROTOTYPE)
66 #define TARGET_NO_BITFIELD_WORD (target_flags & MASK_NO_BITFIELD_WORD)
67 #define TARGET_TOC              ((target_flags & MASK_64BIT)            \
68                                  || ((target_flags & (MASK_RELOCATABLE  \
69                                                       | MASK_MINIMAL_TOC)) \
70                                      && flag_pic > 1)                   \
71                                  || DEFAULT_ABI == ABI_AIX)
72
73 #define TARGET_BITFIELD_TYPE    (! TARGET_NO_BITFIELD_TYPE)
74 #define TARGET_BIG_ENDIAN       (! TARGET_LITTLE_ENDIAN)
75 #define TARGET_NO_PROTOTYPE     (! TARGET_PROTOTYPE)
76 #define TARGET_NO_TOC           (! TARGET_TOC)
77 #define TARGET_NO_EABI          (! TARGET_EABI)
78
79 /* Strings provided by SUBTARGET_OPTIONS */
80 extern const char *rs6000_abi_name;
81 extern const char *rs6000_sdata_name;
82
83 /* Override rs6000.h definition.  */
84 #undef  SUBTARGET_OPTIONS
85 #define SUBTARGET_OPTIONS                                                       \
86   { "call-",  &rs6000_abi_name, N_("Select ABI calling convention"), 0},        \
87   { "sdata=", &rs6000_sdata_name, N_("Select method for sdata handling"), 0}
88
89 /* Max # of bytes for variables to automatically be put into the .sdata
90    or .sdata2 sections.  */
91 extern int g_switch_value;              /* Value of the -G xx switch.  */
92 extern int g_switch_set;                /* Whether -G xx was passed.  */
93
94 #define SDATA_DEFAULT_SIZE 8
95
96 /* Note, V.4 no longer uses a normal TOC, so make -mfull-toc, be just
97    the same as -mminimal-toc.  */
98 /* Override rs6000.h definition.  */
99 #undef  SUBTARGET_SWITCHES
100 #define SUBTARGET_SWITCHES                                              \
101   { "bit-align",        -MASK_NO_BITFIELD_TYPE,                         \
102     N_("Align to the base type of the bit-field") },                    \
103   { "no-bit-align",      MASK_NO_BITFIELD_TYPE,                         \
104     N_("Don't align to the base type of the bit-field") },              \
105   { "strict-align",      MASK_STRICT_ALIGN,                             \
106     N_("Don't assume that unaligned accesses are handled by the system") }, \
107   { "no-strict-align",  -MASK_STRICT_ALIGN,                             \
108     N_("Assume that unaligned accesses are handled by the system") },   \
109   { "relocatable",       MASK_RELOCATABLE | MASK_MINIMAL_TOC | MASK_NO_FP_IN_TOC, \
110     N_("Produce code relocatable at runtime") },                        \
111   { "no-relocatable",   -MASK_RELOCATABLE,                              \
112     N_("Don't produce code relocatable at runtime") },                  \
113   { "relocatable-lib",   MASK_RELOCATABLE | MASK_MINIMAL_TOC | MASK_NO_FP_IN_TOC, \
114     N_("Produce code relocatable at runtime") },                        \
115   { "no-relocatable-lib", -MASK_RELOCATABLE,                            \
116     N_("Don't produce code relocatable at runtime") },                  \
117   { "little-endian",     MASK_LITTLE_ENDIAN,                            \
118     N_("Produce little endian code") },                                 \
119   { "little",            MASK_LITTLE_ENDIAN,                            \
120     N_("Produce little endian code") },                                 \
121   { "big-endian",       -MASK_LITTLE_ENDIAN,                            \
122     N_("Produce big endian code") },                                    \
123   { "big",              -MASK_LITTLE_ENDIAN,                            \
124     N_("Produce big endian code") },                                    \
125   { "no-toc",            0, N_("no description yet") },                 \
126   { "toc",               MASK_MINIMAL_TOC, N_("no description yet") },  \
127   { "full-toc",          MASK_MINIMAL_TOC, N_("no description yet") },  \
128   { "prototype",         MASK_PROTOTYPE, N_("no description yet") },    \
129   { "no-prototype",     -MASK_PROTOTYPE, N_("no description yet") },    \
130   { "no-traceback",      0, N_("no description yet") },                 \
131   { "eabi",              MASK_EABI, N_("Use EABI") },                   \
132   { "no-eabi",          -MASK_EABI, N_("Don't use EABI") },             \
133   { "bit-word",         -MASK_NO_BITFIELD_WORD, "" },                   \
134   { "no-bit-word",       MASK_NO_BITFIELD_WORD,                         \
135     N_("Do not allow bit-fields to cross word boundaries") },           \
136   { "regnames",           MASK_REGNAMES,                                \
137     N_("Use alternate register names") },                               \
138   { "no-regnames",       -MASK_REGNAMES,                                \
139     N_("Don't use alternate register names") },                         \
140   { "sdata",             0, N_("no description yet") },                 \
141   { "no-sdata",          0, N_("no description yet") },                 \
142   { "sim",               0,                                             \
143     N_("Link with libsim.a, libc.a and sim-crt0.o") },                  \
144   { "ads",               0,                                             \
145     N_("Link with libads.a, libc.a and crt0.o") },                      \
146   { "yellowknife",       0,                                             \
147     N_("Link with libyk.a, libc.a and crt0.o") },                       \
148   { "mvme",              0,                                             \
149     N_("Link with libmvme.a, libc.a and crt0.o") },                     \
150   { "emb",               0,                                             \
151     N_("Set the PPC_EMB bit in the ELF flags header") },                \
152   { "windiss",           0, N_("Use the WindISS simulator") },          \
153   { "shlib",             0, N_("no description yet") },                 \
154   EXTRA_SUBTARGET_SWITCHES                                              \
155   { "newlib",            0, N_("no description yet") },
156
157 /* This is meant to be redefined in the host dependent files.  */
158 #define EXTRA_SUBTARGET_SWITCHES
159
160 /* Sometimes certain combinations of command options do not make sense
161    on a particular target machine.  You can define a macro
162    `OVERRIDE_OPTIONS' to take account of this.  This macro, if
163    defined, is executed once just after all the command options have
164    been parsed.
165
166    The macro SUBTARGET_OVERRIDE_OPTIONS is provided for subtargets, to
167    get control.  */
168
169 #define SUBTARGET_OVERRIDE_OPTIONS                                      \
170 do {                                                                    \
171   if (!g_switch_set)                                                    \
172     g_switch_value = SDATA_DEFAULT_SIZE;                                \
173                                                                         \
174   if (!strcmp (rs6000_abi_name, "sysv"))                                \
175     rs6000_current_abi = ABI_V4;                                        \
176   else if (!strcmp (rs6000_abi_name, "sysv-noeabi"))                    \
177     {                                                                   \
178       rs6000_current_abi = ABI_V4;                                      \
179       target_flags &= ~ MASK_EABI;                                      \
180     }                                                                   \
181   else if (!strcmp (rs6000_abi_name, "sysv-eabi")                       \
182            || !strcmp (rs6000_abi_name, "eabi"))                        \
183     {                                                                   \
184       rs6000_current_abi = ABI_V4;                                      \
185       target_flags |= MASK_EABI;                                        \
186     }                                                                   \
187   else if (!strcmp (rs6000_abi_name, "aixdesc"))                        \
188     rs6000_current_abi = ABI_AIX;                                       \
189   else if (!strcmp (rs6000_abi_name, "freebsd"))                        \
190     rs6000_current_abi = ABI_V4;                                        \
191   else if (!strcmp (rs6000_abi_name, "linux"))                          \
192     rs6000_current_abi = ABI_V4;                                        \
193   else if (!strcmp (rs6000_abi_name, "gnu"))                            \
194     rs6000_current_abi = ABI_V4;                                        \
195   else if (!strcmp (rs6000_abi_name, "netbsd"))                         \
196     rs6000_current_abi = ABI_V4;                                        \
197   else if (!strcmp (rs6000_abi_name, "i960-old"))                       \
198     {                                                                   \
199       rs6000_current_abi = ABI_V4;                                      \
200       target_flags |= (MASK_LITTLE_ENDIAN | MASK_EABI                   \
201                        | MASK_NO_BITFIELD_WORD);                        \
202       target_flags &= ~MASK_STRICT_ALIGN;                               \
203     }                                                                   \
204   else                                                                  \
205     {                                                                   \
206       rs6000_current_abi = ABI_V4;                                      \
207       error ("bad value for -mcall-%s", rs6000_abi_name);               \
208     }                                                                   \
209                                                                         \
210   if (rs6000_sdata_name)                                                \
211     {                                                                   \
212       if (!strcmp (rs6000_sdata_name, "none"))                          \
213         rs6000_sdata = SDATA_NONE;                                      \
214       else if (!strcmp (rs6000_sdata_name, "data"))                     \
215         rs6000_sdata = SDATA_DATA;                                      \
216       else if (!strcmp (rs6000_sdata_name, "default"))                  \
217         rs6000_sdata = (TARGET_EABI) ? SDATA_EABI : SDATA_SYSV;         \
218       else if (!strcmp (rs6000_sdata_name, "sysv"))                     \
219         rs6000_sdata = SDATA_SYSV;                                      \
220       else if (!strcmp (rs6000_sdata_name, "eabi"))                     \
221         rs6000_sdata = SDATA_EABI;                                      \
222       else                                                              \
223         error ("bad value for -msdata=%s", rs6000_sdata_name);          \
224     }                                                                   \
225   else if (DEFAULT_ABI == ABI_V4)                                       \
226     {                                                                   \
227       rs6000_sdata = SDATA_DATA;                                        \
228       rs6000_sdata_name = "data";                                       \
229     }                                                                   \
230   else                                                                  \
231     {                                                                   \
232       rs6000_sdata = SDATA_NONE;                                        \
233       rs6000_sdata_name = "none";                                       \
234     }                                                                   \
235                                                                         \
236   if (TARGET_RELOCATABLE &&                                             \
237       (rs6000_sdata == SDATA_EABI || rs6000_sdata == SDATA_SYSV))       \
238     {                                                                   \
239       rs6000_sdata = SDATA_DATA;                                        \
240       error ("-mrelocatable and -msdata=%s are incompatible",           \
241              rs6000_sdata_name);                                        \
242     }                                                                   \
243                                                                         \
244   else if (flag_pic && DEFAULT_ABI != ABI_AIX                           \
245            && (rs6000_sdata == SDATA_EABI                               \
246                || rs6000_sdata == SDATA_SYSV))                          \
247     {                                                                   \
248       rs6000_sdata = SDATA_DATA;                                        \
249       error ("-f%s and -msdata=%s are incompatible",                    \
250              (flag_pic > 1) ? "PIC" : "pic",                            \
251              rs6000_sdata_name);                                        \
252     }                                                                   \
253                                                                         \
254   if (rs6000_sdata != SDATA_NONE && DEFAULT_ABI != ABI_V4)              \
255     {                                                                   \
256       rs6000_sdata = SDATA_NONE;                                        \
257       error ("-msdata=%s and -mcall-%s are incompatible",               \
258              rs6000_sdata_name, rs6000_abi_name);                       \
259     }                                                                   \
260                                                                         \
261   targetm.have_srodata_section = rs6000_sdata == SDATA_EABI;            \
262                                                                         \
263   if (TARGET_RELOCATABLE && !TARGET_MINIMAL_TOC)                        \
264     {                                                                   \
265       target_flags |= MASK_MINIMAL_TOC;                                 \
266       error ("-mrelocatable and -mno-minimal-toc are incompatible");    \
267     }                                                                   \
268                                                                         \
269   if (TARGET_RELOCATABLE && rs6000_current_abi == ABI_AIX)              \
270     {                                                                   \
271       target_flags &= ~MASK_RELOCATABLE;                                \
272       error ("-mrelocatable and -mcall-%s are incompatible",            \
273              rs6000_abi_name);                                          \
274     }                                                                   \
275                                                                         \
276   if (flag_pic > 1 && rs6000_current_abi == ABI_AIX)                    \
277     {                                                                   \
278       flag_pic = 0;                                                     \
279       error ("-fPIC and -mcall-%s are incompatible",                    \
280              rs6000_abi_name);                                          \
281     }                                                                   \
282                                                                         \
283   if (rs6000_current_abi == ABI_AIX && TARGET_LITTLE_ENDIAN)            \
284     {                                                                   \
285       target_flags &= ~MASK_LITTLE_ENDIAN;                              \
286       error ("-mcall-aixdesc must be big endian");                      \
287     }                                                                   \
288                                                                         \
289   /* Treat -fPIC the same as -mrelocatable.  */                         \
290   if (flag_pic > 1 && DEFAULT_ABI != ABI_AIX)                           \
291     target_flags |= MASK_RELOCATABLE | MASK_MINIMAL_TOC | MASK_NO_FP_IN_TOC; \
292                                                                         \
293   else if (TARGET_RELOCATABLE)                                          \
294     flag_pic = 2;                                                       \
295                                                                         \
296 } while (0)
297
298
299 /* Override rs6000.h definition.  */
300 #undef  TARGET_DEFAULT
301 #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
302
303 /* Override rs6000.h definition.  */
304 #undef  PROCESSOR_DEFAULT
305 #define PROCESSOR_DEFAULT PROCESSOR_PPC750
306
307 #define FIXED_R2 1
308 /* System V.4 uses register 13 as a pointer to the small data area,
309    so it is not available to the normal user.  */
310 #define FIXED_R13 1
311
312 /* Size of the V.4 varargs area if needed.  */
313 /* Override rs6000.h definition.  */
314 #undef  RS6000_VARARGS_AREA
315 #define RS6000_VARARGS_AREA ((cfun->machine->sysv_varargs_p) ? RS6000_VARARGS_SIZE : 0)
316
317 /* Override default big endianism definitions in rs6000.h.  */
318 #undef  BYTES_BIG_ENDIAN
319 #undef  WORDS_BIG_ENDIAN
320 #define BYTES_BIG_ENDIAN (TARGET_BIG_ENDIAN)
321 #define WORDS_BIG_ENDIAN (TARGET_BIG_ENDIAN)
322
323 /* Define this to set the endianness to use in libgcc2.c, which can
324    not depend on target_flags.  */
325 #if !defined(_LITTLE_ENDIAN) && !defined(__sun__)
326 #define LIBGCC2_WORDS_BIG_ENDIAN 1
327 #else
328 #define LIBGCC2_WORDS_BIG_ENDIAN 0
329 #endif
330
331 /* Define cutoff for using external functions to save floating point.
332    Currently on V.4, always use inline stores.  */
333 #define FP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 64)
334
335 /* Put jump tables in read-only memory, rather than in .text.  */
336 #define JUMP_TABLES_IN_TEXT_SECTION 0
337
338 /* Prefix and suffix to use to saving floating point.  */
339 #define SAVE_FP_PREFIX "_savefpr_"
340 #define SAVE_FP_SUFFIX "_l"
341
342 /* Prefix and suffix to use to restoring floating point.  */
343 #define RESTORE_FP_PREFIX "_restfpr_"
344 #define RESTORE_FP_SUFFIX "_l"
345
346 /* Type used for ptrdiff_t, as a string used in a declaration.  */
347 #define PTRDIFF_TYPE "int"
348
349 /* Type used for wchar_t, as a string used in a declaration.  */
350 /* Override svr4.h definition.  */
351 #undef  WCHAR_TYPE
352 #define WCHAR_TYPE "long int"
353
354 /* Width of wchar_t in bits.  */
355 /* Override svr4.h definition.  */
356 #undef  WCHAR_TYPE_SIZE
357 #define WCHAR_TYPE_SIZE 32
358
359 /* Make int foo : 8 not cause structures to be aligned to an int boundary.  */
360 /* Override elfos.h definition.  */
361 #undef  PCC_BITFIELD_TYPE_MATTERS
362 #define PCC_BITFIELD_TYPE_MATTERS (TARGET_BITFIELD_TYPE)
363
364 #undef  BITFIELD_NBYTES_LIMITED
365 #define BITFIELD_NBYTES_LIMITED (TARGET_NO_BITFIELD_WORD)
366
367 /* Define this macro to be the value 1 if instructions will fail to
368    work if given data not on the nominal alignment.  If instructions
369    will merely go slower in that case, define this macro as 0.  */
370 #undef  STRICT_ALIGNMENT
371 #define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN)
372
373 /* Alignment in bits of the stack boundary.  Note, in order to allow building
374    one set of libraries with -mno-eabi instead of eabi libraries and non-eabi
375    versions, just use 64 as the stack boundary.  */
376 #undef  STACK_BOUNDARY
377 #define STACK_BOUNDARY  (TARGET_ALTIVEC_ABI ? 128 : 64)
378
379 /* Real stack boundary as mandated by the appropriate ABI.  */
380 #define ABI_STACK_BOUNDARY ((TARGET_EABI && !TARGET_ALTIVEC_ABI) ? 64 : 128)
381
382 /* An expression for the alignment of a structure field FIELD if the
383    alignment computed in the usual way is COMPUTED.  */
384 #define ADJUST_FIELD_ALIGN(FIELD, COMPUTED)                                   \
385         ((TARGET_ALTIVEC && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE)     \
386          ? 128 : COMPUTED)
387
388 /* Define this macro as an expression for the alignment of a type
389    (given by TYPE as a tree node) if the alignment computed in the
390    usual way is COMPUTED and the alignment explicitly specified was
391    SPECIFIED.  */
392 #define ROUND_TYPE_ALIGN(TYPE, COMPUTED, SPECIFIED)                     \
393         ((TARGET_ALTIVEC  && TREE_CODE (TYPE) == VECTOR_TYPE)           \
394          ? MAX (MAX ((COMPUTED), (SPECIFIED)), 128)                     \
395          : MAX (COMPUTED, SPECIFIED))
396
397 #undef  BIGGEST_FIELD_ALIGNMENT
398
399 /* Use ELF style section commands.  */
400
401 #define TEXT_SECTION_ASM_OP     "\t.section\t\".text\""
402
403 #define DATA_SECTION_ASM_OP     "\t.section\t\".data\""
404
405 #define BSS_SECTION_ASM_OP      "\t.section\t\".bss\""
406
407 /* Override elfos.h definition.  */
408 #undef  INIT_SECTION_ASM_OP
409 #define INIT_SECTION_ASM_OP "\t.section\t\".init\",\"ax\""
410
411 /* Override elfos.h definition.  */
412 #undef  FINI_SECTION_ASM_OP
413 #define FINI_SECTION_ASM_OP "\t.section\t\".fini\",\"ax\""
414
415 #define TOC_SECTION_ASM_OP "\t.section\t\".got\",\"aw\""
416
417 /* Put PC relative got entries in .got2.  */
418 #define MINIMAL_TOC_SECTION_ASM_OP \
419   (TARGET_RELOCATABLE || (flag_pic && DEFAULT_ABI != ABI_AIX)           \
420    ? "\t.section\t\".got2\",\"aw\"" : "\t.section\t\".got1\",\"aw\"")
421
422 #define SDATA_SECTION_ASM_OP "\t.section\t\".sdata\",\"aw\""
423 #define SDATA2_SECTION_ASM_OP "\t.section\t\".sdata2\",\"a\""
424 #define SBSS_SECTION_ASM_OP "\t.section\t\".sbss\",\"aw\",@nobits"
425
426 /* Besides the usual ELF sections, we need a toc section.  */
427 /* Override elfos.h definition.  */
428 #undef  EXTRA_SECTIONS
429 #define EXTRA_SECTIONS in_toc, in_sdata, in_sdata2, in_sbss, in_init, in_fini
430
431 /* Override elfos.h definition.  */
432 #undef  EXTRA_SECTION_FUNCTIONS
433 #define EXTRA_SECTION_FUNCTIONS                                         \
434   TOC_SECTION_FUNCTION                                                  \
435   SDATA_SECTION_FUNCTION                                                \
436   SDATA2_SECTION_FUNCTION                                               \
437   SBSS_SECTION_FUNCTION                                                 \
438   INIT_SECTION_FUNCTION                                                 \
439   FINI_SECTION_FUNCTION
440
441 #define TOC_SECTION_FUNCTION                                            \
442 void                                                                    \
443 toc_section ()                                                          \
444 {                                                                       \
445   if (in_section != in_toc)                                             \
446     {                                                                   \
447       in_section = in_toc;                                              \
448       if (DEFAULT_ABI == ABI_AIX                                        \
449           && TARGET_MINIMAL_TOC                                         \
450           && !TARGET_RELOCATABLE)                                       \
451         {                                                               \
452           if (! toc_initialized)                                        \
453             {                                                           \
454               toc_initialized = 1;                                      \
455               fprintf (asm_out_file, "%s\n", TOC_SECTION_ASM_OP);       \
456               (*targetm.asm_out.internal_label) (asm_out_file, "LCTOC", 0); \
457               fprintf (asm_out_file, "\t.tc ");                         \
458               ASM_OUTPUT_INTERNAL_LABEL_PREFIX (asm_out_file, "LCTOC1[TC],"); \
459               ASM_OUTPUT_INTERNAL_LABEL_PREFIX (asm_out_file, "LCTOC1"); \
460               fprintf (asm_out_file, "\n");                             \
461                                                                         \
462               fprintf (asm_out_file, "%s\n", MINIMAL_TOC_SECTION_ASM_OP); \
463               ASM_OUTPUT_INTERNAL_LABEL_PREFIX (asm_out_file, "LCTOC1"); \
464               fprintf (asm_out_file, " = .+32768\n");                   \
465             }                                                           \
466           else                                                          \
467             fprintf (asm_out_file, "%s\n", MINIMAL_TOC_SECTION_ASM_OP); \
468         }                                                               \
469       else if (DEFAULT_ABI == ABI_AIX && !TARGET_RELOCATABLE)           \
470         fprintf (asm_out_file, "%s\n", TOC_SECTION_ASM_OP);             \
471       else                                                              \
472         {                                                               \
473           fprintf (asm_out_file, "%s\n", MINIMAL_TOC_SECTION_ASM_OP);   \
474           if (! toc_initialized)                                        \
475             {                                                           \
476               ASM_OUTPUT_INTERNAL_LABEL_PREFIX (asm_out_file, "LCTOC1"); \
477               fprintf (asm_out_file, " = .+32768\n");                   \
478               toc_initialized = 1;                                      \
479             }                                                           \
480         }                                                               \
481     }                                                                   \
482 }                                                                       \
483                                                                         \
484 extern int in_toc_section PARAMS ((void));                              \
485 int in_toc_section ()                                                   \
486 {                                                                       \
487   return in_section == in_toc;                                          \
488 }
489
490 #define SDATA_SECTION_FUNCTION                                          \
491 void                                                                    \
492 sdata_section ()                                                        \
493 {                                                                       \
494   if (in_section != in_sdata)                                           \
495     {                                                                   \
496       in_section = in_sdata;                                            \
497       fprintf (asm_out_file, "%s\n", SDATA_SECTION_ASM_OP);             \
498     }                                                                   \
499 }
500
501 #define SDATA2_SECTION_FUNCTION                                         \
502 void                                                                    \
503 sdata2_section ()                                                       \
504 {                                                                       \
505   if (in_section != in_sdata2)                                          \
506     {                                                                   \
507       in_section = in_sdata2;                                           \
508       fprintf (asm_out_file, "%s\n", SDATA2_SECTION_ASM_OP);            \
509     }                                                                   \
510 }
511
512 #define SBSS_SECTION_FUNCTION                                           \
513 void                                                                    \
514 sbss_section ()                                                         \
515 {                                                                       \
516   if (in_section != in_sbss)                                            \
517     {                                                                   \
518       in_section = in_sbss;                                             \
519       fprintf (asm_out_file, "%s\n", SBSS_SECTION_ASM_OP);              \
520     }                                                                   \
521 }
522
523 #define INIT_SECTION_FUNCTION                                           \
524 void                                                                    \
525 init_section ()                                                         \
526 {                                                                       \
527   if (in_section != in_init)                                            \
528     {                                                                   \
529       in_section = in_init;                                             \
530       fprintf (asm_out_file, "%s\n", INIT_SECTION_ASM_OP);              \
531     }                                                                   \
532 }
533
534 #define FINI_SECTION_FUNCTION                                           \
535 void                                                                    \
536 fini_section ()                                                         \
537 {                                                                       \
538   if (in_section != in_fini)                                            \
539     {                                                                   \
540       in_section = in_fini;                                             \
541       fprintf (asm_out_file, "%s\n", FINI_SECTION_ASM_OP);              \
542     }                                                                   \
543 }
544
545 /* Override default elf definitions.  */
546 #undef  TARGET_ASM_SELECT_RTX_SECTION
547 #define TARGET_ASM_SELECT_RTX_SECTION rs6000_elf_select_rtx_section
548 #undef  TARGET_ASM_SELECT_SECTION
549 #define TARGET_ASM_SELECT_SECTION  rs6000_elf_select_section
550 #define TARGET_ASM_UNIQUE_SECTION  rs6000_elf_unique_section
551
552 /* Return nonzero if this entry is to be written into the constant pool
553    in a special way.  We do so if this is a SYMBOL_REF, LABEL_REF or a CONST
554    containing one of them.  If -mfp-in-toc (the default), we also do
555    this for floating-point constants.  We actually can only do this
556    if the FP formats of the target and host machines are the same, but
557    we can't check that since not every file that uses
558    GO_IF_LEGITIMATE_ADDRESS_P includes real.h.
559
560    Unlike AIX, we don't key off of -mminimal-toc, but instead do not
561    allow floating point constants in the TOC if -mrelocatable.  */
562
563 #undef  ASM_OUTPUT_SPECIAL_POOL_ENTRY_P
564 #define ASM_OUTPUT_SPECIAL_POOL_ENTRY_P(X, MODE)                        \
565   (TARGET_TOC                                                           \
566    && (GET_CODE (X) == SYMBOL_REF                                       \
567        || (GET_CODE (X) == CONST && GET_CODE (XEXP (X, 0)) == PLUS      \
568            && GET_CODE (XEXP (XEXP (X, 0), 0)) == SYMBOL_REF)           \
569        || GET_CODE (X) == LABEL_REF                                     \
570        || (GET_CODE (X) == CONST_INT                                    \
571            && GET_MODE_BITSIZE (MODE) <= GET_MODE_BITSIZE (Pmode))      \
572        || (!TARGET_NO_FP_IN_TOC                                         \
573            && !TARGET_RELOCATABLE                                       \
574            && GET_CODE (X) == CONST_DOUBLE                              \
575            && GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT               \
576            && BITS_PER_WORD == HOST_BITS_PER_INT)))
577
578 /* These macros generate the special .type and .size directives which
579    are used to set the corresponding fields of the linker symbol table
580    entries in an ELF object file under SVR4.  These macros also output
581    the starting labels for the relevant functions/objects.  */
582
583 /* Write the extra assembler code needed to declare a function properly.
584    Some svr4 assemblers need to also have something extra said about the
585    function's return value.  We allow for that here.  */
586
587 extern int rs6000_pic_labelno;
588
589 /* Override elfos.h definition.  */
590 #undef  ASM_DECLARE_FUNCTION_NAME
591 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
592   do {                                                                  \
593     const char *const init_ptr = (TARGET_64BIT) ? ".quad" : ".long";    \
594                                                                         \
595     if (TARGET_RELOCATABLE                                              \
596         && (get_pool_size () != 0 || current_function_profile)          \
597         && uses_TOC())                                                  \
598       {                                                                 \
599         char buf[256];                                                  \
600                                                                         \
601         (*targetm.asm_out.internal_label) (FILE, "LCL", rs6000_pic_labelno); \
602                                                                         \
603         ASM_GENERATE_INTERNAL_LABEL (buf, "LCTOC", 1);                  \
604         fprintf (FILE, "\t%s ", init_ptr);                              \
605         assemble_name (FILE, buf);                                      \
606         putc ('-', FILE);                                               \
607         ASM_GENERATE_INTERNAL_LABEL (buf, "LCF", rs6000_pic_labelno);   \
608         assemble_name (FILE, buf);                                      \
609         putc ('\n', FILE);                                              \
610       }                                                                 \
611                                                                         \
612     ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function");                 \
613     ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));                      \
614                                                                         \
615     if (DEFAULT_ABI == ABI_AIX)                                         \
616       {                                                                 \
617         const char *desc_name, *orig_name;                              \
618                                                                         \
619         orig_name = (*targetm.strip_name_encoding) (NAME);              \
620         desc_name = orig_name;                                          \
621         while (*desc_name == '.')                                       \
622           desc_name++;                                                  \
623                                                                         \
624         if (TREE_PUBLIC (DECL))                                         \
625           fprintf (FILE, "\t.globl %s\n", desc_name);                   \
626                                                                         \
627         fprintf (FILE, "%s\n", MINIMAL_TOC_SECTION_ASM_OP);             \
628         fprintf (FILE, "%s:\n", desc_name);                             \
629         fprintf (FILE, "\t%s %s\n", init_ptr, orig_name);               \
630         fprintf (FILE, "\t%s _GLOBAL_OFFSET_TABLE_\n", init_ptr);       \
631         if (DEFAULT_ABI == ABI_AIX)                                     \
632           fprintf (FILE, "\t%s 0\n", init_ptr);                         \
633         fprintf (FILE, "\t.previous\n");                                \
634       }                                                                 \
635     ASM_OUTPUT_LABEL (FILE, NAME);                                      \
636   } while (0)
637
638 /* The USER_LABEL_PREFIX stuff is affected by the -fleading-underscore
639    flag.  The LOCAL_LABEL_PREFIX variable is used by dbxelf.h.  */
640
641 #define LOCAL_LABEL_PREFIX "."
642 #define USER_LABEL_PREFIX ""
643
644 /* svr4.h overrides (*targetm.asm_out.internal_label).  */
645
646 #define ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX)   \
647   asm_fprintf (FILE, "%L%s", PREFIX)
648
649 /* Globalizing directive for a label.  */
650 #define GLOBAL_ASM_OP "\t.globl "
651
652 /* This says how to output assembler code to declare an
653    uninitialized internal linkage data object.  Under SVR4,
654    the linker seems to want the alignment of data objects
655    to depend on their types.  We do exactly that here.  */
656
657 #define LOCAL_ASM_OP    "\t.local\t"
658
659 #define LCOMM_ASM_OP    "\t.lcomm\t"
660
661 /* Override elfos.h definition.  */
662 #undef  ASM_OUTPUT_ALIGNED_LOCAL
663 #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN)               \
664 do {                                                                    \
665   if (rs6000_sdata != SDATA_NONE && (SIZE) > 0                          \
666       && (SIZE) <= g_switch_value)                                      \
667     {                                                                   \
668       sbss_section ();                                                  \
669       ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT));      \
670       ASM_OUTPUT_LABEL (FILE, NAME);                                    \
671       ASM_OUTPUT_SKIP (FILE, SIZE);                                     \
672       if (!flag_inhibit_size_directive && (SIZE) > 0)                   \
673         ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE);                   \
674     }                                                                   \
675   else                                                                  \
676     {                                                                   \
677       fprintf (FILE, "%s", LCOMM_ASM_OP);                               \
678       assemble_name ((FILE), (NAME));                                   \
679       fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT);    \
680     }                                                                   \
681   ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object");                     \
682 } while (0)
683
684 /* Describe how to emit uninitialized external linkage items.  */
685 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN)           \
686 do {                                                                    \
687   ASM_OUTPUT_ALIGNED_LOCAL (FILE, NAME, SIZE, ALIGN);                   \
688 } while (0)
689
690 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
691 /* To support -falign-* switches we need to use .p2align so
692    that alignment directives in code sections will be padded
693    with no-op instructions, rather than zeroes.  */
694 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP)                    \
695   if ((LOG) != 0)                                                       \
696     {                                                                   \
697       if ((MAX_SKIP) == 0)                                              \
698         fprintf ((FILE), "\t.p2align %d\n", (LOG));                     \
699       else                                                              \
700         fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));     \
701     }
702 #endif
703
704 /* This is how to output code to push a register on the stack.
705    It need not be very fast code.
706
707    On the rs6000, we must keep the backchain up to date.  In order
708    to simplify things, always allocate 16 bytes for a push (System V
709    wants to keep stack aligned to a 16 byte boundary).  */
710
711 #define ASM_OUTPUT_REG_PUSH(FILE, REGNO)                                \
712 do {                                                                    \
713   if (DEFAULT_ABI == ABI_V4)                                            \
714     asm_fprintf (FILE,                                                  \
715                  "\t{stu|stwu} %s,-16(%s)\n\t{st|stw} %s,12(%s)\n",     \
716                  reg_names[1], reg_names[1], reg_names[REGNO],          \
717                  reg_names[1]);                                         \
718 } while (0)
719
720 /* This is how to output an insn to pop a register from the stack.
721    It need not be very fast code.  */
722
723 #define ASM_OUTPUT_REG_POP(FILE, REGNO)                                 \
724 do {                                                                    \
725   if (DEFAULT_ABI == ABI_V4)                                            \
726     asm_fprintf (FILE,                                                  \
727                  "\t{l|lwz} %s,12(%s)\n\t{ai|addic} %s,%s,16\n",        \
728                  reg_names[REGNO], reg_names[1], reg_names[1],          \
729                  reg_names[1]);                                         \
730 } while (0)
731
732 /* Switch  Recognition by gcc.c.  Add -G xx support.  */
733
734 /* Override svr4.h definition.  */
735 #undef  SWITCH_TAKES_ARG
736 #define SWITCH_TAKES_ARG(CHAR)                                          \
737   ((CHAR) == 'D' || (CHAR) == 'U' || (CHAR) == 'o'                      \
738    || (CHAR) == 'e' || (CHAR) == 'T' || (CHAR) == 'u'                   \
739    || (CHAR) == 'I' || (CHAR) == 'm' || (CHAR) == 'x'                   \
740    || (CHAR) == 'L' || (CHAR) == 'A' || (CHAR) == 'V'                   \
741    || (CHAR) == 'B' || (CHAR) == 'b' || (CHAR) == 'G')
742
743 /* Output .file.  */
744 /* Override elfos.h definition.  */
745 #undef  ASM_FILE_START
746 #define ASM_FILE_START(FILE)                                            \
747 do {                                                                    \
748   output_file_directive ((FILE), main_input_filename);                  \
749   rs6000_file_start (FILE, TARGET_CPU_DEFAULT);                         \
750 } while (0)
751
752
753 extern int fixuplabelno;
754
755 /* Handle constructors specially for -mrelocatable.  */
756 #define TARGET_ASM_CONSTRUCTOR  rs6000_elf_asm_out_constructor
757 #define TARGET_ASM_DESTRUCTOR   rs6000_elf_asm_out_destructor
758
759 /* This is the end of what might become sysv4.h.  */
760
761 /* Use DWARF 2 debugging information by default.  */
762 #undef  PREFERRED_DEBUGGING_TYPE
763 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
764
765 /* Historically we have also supported stabs debugging.  */
766 #define DBX_DEBUGGING_INFO 1
767
768 #define TARGET_ENCODE_SECTION_INFO  rs6000_elf_encode_section_info
769 #define TARGET_IN_SMALL_DATA_P  rs6000_elf_in_small_data_p
770 #define TARGET_SECTION_TYPE_FLAGS  rs6000_elf_section_type_flags
771
772 /* The ELF version doesn't encode [DS] or whatever at the end of symbols.  */
773
774 #define RS6000_OUTPUT_BASENAME(FILE, NAME)      \
775     assemble_name (FILE, NAME)
776
777 /* We have to output the stabs for the function name *first*, before
778    outputting its label.  */
779
780 #define DBX_FUNCTION_FIRST
781
782 /* This is the end of what might become sysv4dbx.h.  */
783
784 #ifndef TARGET_VERSION
785 #define TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)");
786 #endif
787 \f
788 #ifndef TARGET_OS_CPP_BUILTINS
789 #define TARGET_OS_CPP_BUILTINS()          \
790   do                                      \
791     {                                     \
792       builtin_define_std ("PPC");         \
793       builtin_define_std ("unix");        \
794       builtin_define ("__svr4__");        \
795       builtin_assert ("system=unix");     \
796       builtin_assert ("system=svr4");     \
797       builtin_assert ("cpu=powerpc");     \
798       builtin_assert ("machine=powerpc"); \
799     }                                     \
800   while (0)
801 #endif
802
803 /* Pass various options to the assembler.  */
804 /* Override svr4.h definition.  */
805 #undef  ASM_SPEC
806 #define ASM_SPEC "%(asm_cpu) \
807 %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} \
808 %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \
809 %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \
810 %{memb|msdata|msdata=eabi: -memb} \
811 %{mlittle|mlittle-endian:-mlittle; \
812   mbig|mbig-endian      :-mbig;    \
813   mcall-aixdesc |                  \
814   mcall-freebsd |                  \
815   mcall-netbsd  |                  \
816   mcall-linux   |                  \
817   mcall-gnu             :-mbig;    \
818   mcall-i960-old        :-mlittle}"
819
820 #define CC1_ENDIAN_BIG_SPEC ""
821
822 #define CC1_ENDIAN_LITTLE_SPEC "\
823 %{!mstrict-align: %{!mno-strict-align: \
824     %{!mcall-i960-old: \
825         -mstrict-align \
826     } \
827 }}"
828
829 #define CC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big)"
830
831 /* Pass -G xxx to the compiler and set correct endian mode.  */
832 #define CC1_SPEC "%{G*} \
833 %{mlittle|mlittle-endian: %(cc1_endian_little);           \
834   mbig   |mbig-endian   : %(cc1_endian_big);              \
835   mcall-aixdesc |                                         \
836   mcall-freebsd |                                         \
837   mcall-netbsd  |                                         \
838   mcall-linux   |                                         \
839   mcall-gnu             : -mbig %(cc1_endian_big);        \
840   mcall-i960-old        : -mlittle %(cc1_endian_little);  \
841                         : %(cc1_endian_default)}          \
842 %{mno-sdata: -msdata=none } \
843 %{meabi: %{!mcall-*: -mcall-sysv }} \
844 %{!meabi: %{!mno-eabi: \
845     %{mrelocatable: -meabi } \
846     %{mcall-freebsd: -mno-eabi } \
847     %{mcall-i960-old: -meabi } \
848     %{mcall-linux: -mno-eabi } \
849     %{mcall-gnu: -mno-eabi } \
850     %{mcall-netbsd: -mno-eabi }}} \
851 %{msdata: -msdata=default} \
852 %{mno-sdata: -msdata=none} \
853 %{profile: -p}"
854
855 /* Don't put -Y P,<path> for cross compilers.  */
856 #ifndef CROSS_COMPILE
857 #define LINK_PATH_SPEC "\
858 %{!R*:%{L*:-R %*}} \
859 %{!nostdlib: %{!YP,*: \
860     %{compat-bsd: \
861         %{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
862         %{!p:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}} \
863         %{!R*: %{!L*: -R /usr/ucblib}} \
864     %{!compat-bsd: \
865         %{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
866         %{!p:-Y P,/usr/ccs/lib:/usr/lib}}}}"
867
868 #else
869 #define LINK_PATH_SPEC ""
870 #endif
871
872 /* Default starting address if specified.  */
873 #define LINK_START_SPEC "\
874 %{mads         : %(link_start_ads)         ; \
875   myellowknife : %(link_start_yellowknife) ; \
876   mmvme        : %(link_start_mvme)        ; \
877   msim         : %(link_start_sim)         ; \
878   mwindiss     : %(link_start_windiss)     ; \
879   mcall-freebsd: %(link_start_freebsd)     ; \
880   mcall-linux  : %(link_start_linux)       ; \
881   mcall-gnu    : %(link_start_gnu)         ; \
882   mcall-netbsd : %(link_start_netbsd)      ; \
883                : %(link_start_default)     }"
884
885 #define LINK_START_DEFAULT_SPEC ""
886
887 /* Override svr4.h definition.  */
888 #undef  LINK_SPEC
889 #define LINK_SPEC "\
890 %{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} \
891 %{YP,*} %{R*} \
892 %{Qy:} %{!Qn:-Qy} \
893 %(link_shlib) \
894 %{!Wl,-T*: %{!T*: %(link_start) }} \
895 %(link_target) \
896 %(link_os)"
897
898 /* For now, turn off shared libraries by default.  */
899 #ifndef SHARED_LIB_SUPPORT
900 #define NO_SHARED_LIB_SUPPORT
901 #endif
902
903 #ifndef NO_SHARED_LIB_SUPPORT
904 /* Shared libraries are default.  */
905 #define LINK_SHLIB_SPEC "\
906 %{!static: %(link_path) %{!R*:%{L*:-R %*}}} \
907 %{mshlib: } \
908 %{static:-dn -Bstatic} \
909 %{shared:-G -dy -z text} \
910 %{symbolic:-Bsymbolic -G -dy -z text}"
911
912 #else
913 /* Shared libraries are not default.  */
914 #define LINK_SHLIB_SPEC "\
915 %{mshlib: %(link_path) } \
916 %{!mshlib: %{!shared: %{!symbolic: -dn -Bstatic}}} \
917 %{static: } \
918 %{shared:-G -dy -z text %(link_path) } \
919 %{symbolic:-Bsymbolic -G -dy -z text %(link_path) }"
920 #endif
921
922 /* Override the default target of the linker.  */
923 #define LINK_TARGET_SPEC "\
924 %{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } \
925 %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
926     %{mcall-i960-old: --oformat elf32-powerpcle} \
927   }}}}"
928
929 /* Any specific OS flags.  */
930 #define LINK_OS_SPEC "\
931 %{mads         : %(link_os_ads)         ; \
932   myellowknife : %(link_os_yellowknife) ; \
933   mmvme        : %(link_os_mvme)        ; \
934   msim         : %(link_os_sim)         ; \
935   mwindiss     : %(link_os_windiss)     ; \
936   mcall-freebsd: %(link_os_freebsd)     ; \
937   mcall-linux  : %(link_os_linux)       ; \
938   mcall-gnu    : %(link_os_gnu)         ; \
939   mcall-netbsd : %(link_os_netbsd)      ; \
940                : %(link_os_default)     }"
941
942 #define LINK_OS_DEFAULT_SPEC ""
943
944 #define CPP_SYSV_SPEC \
945 "%{mrelocatable*: -D_RELOCATABLE} \
946 %{fpic: -D__PIC__=1 -D__pic__=1} \
947 %{!fpic: %{fPIC: -D__PIC__=2 -D__pic__=2}}"
948
949 /* Override rs6000.h definition.  */
950 #undef  CPP_SPEC
951 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE} %(cpp_sysv) \
952 %{mads         : %(cpp_os_ads)         ; \
953   myellowknife : %(cpp_os_yellowknife) ; \
954   mmvme        : %(cpp_os_mvme)        ; \
955   msim         : %(cpp_os_sim)         ; \
956   mwindiss     : %(cpp_os_windiss)     ; \
957   mcall-freebsd: %(cpp_os_freebsd)     ; \
958   mcall-linux  : %(cpp_os_linux)       ; \
959   mcall-gnu    : %(cpp_os_gnu)         ; \
960   mcall-netbsd : %(cpp_os_netbsd)      ; \
961                : %(cpp_os_default)     }"
962
963 #define CPP_OS_DEFAULT_SPEC ""
964
965 /* Override svr4.h definition.  */
966 #undef  STARTFILE_SPEC
967 #define STARTFILE_SPEC "\
968 %{mads         : %(startfile_ads)         ; \
969   myellowknife : %(startfile_yellowknife) ; \
970   mmvme        : %(startfile_mvme)        ; \
971   msim         : %(startfile_sim)         ; \
972   mwindiss     : %(startfile_windiss)     ; \
973   mcall-freebsd: %(startfile_freebsd)     ; \
974   mcall-linux  : %(startfile_linux)       ; \
975   mcall-gnu    : %(startfile_gnu)         ; \
976   mcall-netbsd : %(startfile_netbsd)      ; \
977                : %(startfile_default)     }"
978
979 #define STARTFILE_DEFAULT_SPEC ""
980
981 /* Override svr4.h definition.  */
982 #undef  LIB_SPEC
983 #define LIB_SPEC "\
984 %{mads         : %(lib_ads)         ; \
985   myellowknife : %(lib_yellowknife) ; \
986   mmvme        : %(lib_mvme)        ; \
987   msim         : %(lib_sim)         ; \
988   mwindiss     : %(lib_windiss)     ; \
989   mcall-freebsd: %(lib_freebsd)     ; \
990   mcall-linux  : %(lib_linux)       ; \
991   mcall-gnu    : %(lib_gnu)         ; \
992   mcall-netbsd : %(lib_netbsd)      ; \
993                : %(lib_default)     }"
994
995 #define LIB_DEFAULT_SPEC ""
996
997 /* Override svr4.h definition.  */
998 #undef  ENDFILE_SPEC
999 #define ENDFILE_SPEC "\
1000 %{mads         : crtsavres.o%s        %(endfile_ads)         ; \
1001   myellowknife : crtsavres.o%s        %(endfile_yellowknife) ; \
1002   mmvme        : crtsavres.o%s        %(endfile_mvme)        ; \
1003   msim         : crtsavres.o%s        %(endfile_sim)         ; \
1004   mwindiss     :                      %(endfile_windiss)     ; \
1005   mcall-freebsd: crtsavres.o%s        %(endfile_freebsd)     ; \
1006   mcall-linux  : crtsavres.o%s        %(endfile_linux)       ; \
1007   mcall-gnu    : crtsavres.o%s        %(endfile_gnu)         ; \
1008   mcall-netbsd : crtsavres.o%s        %(endfile_netbsd)      ; \
1009                : %(crtsavres_default) %(endfile_default)     }"
1010
1011 #define CRTSAVRES_DEFAULT_SPEC "crtsavres.o%s"
1012
1013 #define ENDFILE_DEFAULT_SPEC ""
1014
1015 /* Motorola ADS support.  */
1016 #define LIB_ADS_SPEC "--start-group -lads -lc --end-group"
1017
1018 #define STARTFILE_ADS_SPEC "ecrti.o%s crt0.o%s crtbegin.o%s"
1019
1020 #define ENDFILE_ADS_SPEC "crtend.o%s ecrtn.o%s"
1021
1022 #define LINK_START_ADS_SPEC "-T ads.ld%s"
1023
1024 #define LINK_OS_ADS_SPEC ""
1025
1026 #define CPP_OS_ADS_SPEC ""
1027
1028 /* Motorola Yellowknife support.  */
1029 #define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group"
1030
1031 #define STARTFILE_YELLOWKNIFE_SPEC "ecrti.o%s crt0.o%s crtbegin.o%s"
1032
1033 #define ENDFILE_YELLOWKNIFE_SPEC "crtend.o%s ecrtn.o%s"
1034
1035 #define LINK_START_YELLOWKNIFE_SPEC "-T yellowknife.ld%s"
1036
1037 #define LINK_OS_YELLOWKNIFE_SPEC ""
1038
1039 #define CPP_OS_YELLOWKNIFE_SPEC ""
1040
1041 /* Motorola MVME support.  */
1042 #define LIB_MVME_SPEC "--start-group -lmvme -lc --end-group"
1043
1044 #define STARTFILE_MVME_SPEC "ecrti.o%s crt0.o%s crtbegin.o%s"
1045
1046 #define ENDFILE_MVME_SPEC "crtend.o%s ecrtn.o%s"
1047
1048 #define LINK_START_MVME_SPEC "-Ttext 0x40000"
1049
1050 #define LINK_OS_MVME_SPEC ""
1051
1052 #define CPP_OS_MVME_SPEC ""
1053
1054 /* PowerPC simulator based on netbsd system calls support.  */
1055 #define LIB_SIM_SPEC "--start-group -lsim -lc --end-group"
1056
1057 #define STARTFILE_SIM_SPEC "ecrti.o%s sim-crt0.o%s crtbegin.o%s"
1058
1059 #define ENDFILE_SIM_SPEC "crtend.o%s ecrtn.o%s"
1060
1061 #define LINK_START_SIM_SPEC ""
1062
1063 #define LINK_OS_SIM_SPEC "-m elf32ppcsim"
1064
1065 #define CPP_OS_SIM_SPEC ""
1066
1067 /* FreeBSD support.  */
1068
1069 #define CPP_OS_FREEBSD_SPEC     "\
1070   -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \
1071   -Acpu=powerpc -Amachine=powerpc"
1072
1073 #define STARTFILE_FREEBSD_SPEC  FBSD_STARTFILE_SPEC
1074 #define ENDFILE_FREEBSD_SPEC    FBSD_ENDFILE_SPEC
1075 #define LIB_FREEBSD_SPEC        FBSD_LIB_SPEC
1076 #define LINK_START_FREEBSD_SPEC ""
1077
1078 #define LINK_OS_FREEBSD_SPEC "\
1079   %{symbolic:-Bsymbolic}"
1080
1081 /* GNU/Linux support.  */
1082 #ifdef USE_GNULIBC_1
1083 #define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } \
1084 %{!mnewlib: -lc }"
1085 #else
1086 #define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } \
1087 %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } \
1088 %{profile:-lc_p} %{!profile:-lc}}}"
1089 #endif
1090
1091 #ifdef USE_GNULIBC_1
1092 #define STARTFILE_LINUX_SPEC "\
1093 %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
1094 %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
1095 %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
1096 #else
1097 #define STARTFILE_LINUX_SPEC "\
1098 %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
1099 %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
1100 %{static:crtbeginT.o%s} \
1101 %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
1102 #endif
1103
1104 #define ENDFILE_LINUX_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \
1105 %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}"
1106
1107 #define LINK_START_LINUX_SPEC ""
1108
1109 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
1110   %{rdynamic:-export-dynamic} \
1111   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
1112
1113 #if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
1114 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
1115 #endif
1116
1117 #ifdef USE_GNULIBC_1
1118 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
1119 %{!undef:                                                         \
1120   %{!ansi:                                                        \
1121     %{!std=*:-Dunix -D__unix -Dlinux -D__linux}                   \
1122     %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}}               \
1123 -Asystem=unix -Asystem=posix"
1124 #else
1125 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
1126 %{!undef:                                                         \
1127   %{!ansi:                                                        \
1128     %{!std=*:-Dunix -D__unix -Dlinux -D__linux}                   \
1129     %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}}               \
1130 -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}"
1131 #endif
1132
1133 /* GNU/Hurd support.  */
1134 #define LIB_GNU_SPEC "%{mnewlib: --start-group -lgnu -lc --end-group } \
1135 %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } \
1136 %{profile:-lc_p} %{!profile:-lc}}}"
1137
1138 #define STARTFILE_GNU_SPEC "\
1139 %{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}} \
1140 %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} \
1141 %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} \
1142 %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
1143
1144 #define ENDFILE_GNU_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \
1145 %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}"
1146
1147 #define LINK_START_GNU_SPEC ""
1148
1149 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
1150   %{rdynamic:-export-dynamic} \
1151   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
1152
1153 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__    \
1154 %{!undef:                                                       \
1155   %{!ansi: -Dunix -D__unix}}                                    \
1156 -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}"
1157
1158 /* NetBSD support.  */
1159 #define LIB_NETBSD_SPEC "\
1160 %{profile:-lgmon -lc_p} %{!profile:-lc}"
1161
1162 #define STARTFILE_NETBSD_SPEC "\
1163 ncrti.o%s crt0.o%s \
1164 %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
1165
1166 #define ENDFILE_NETBSD_SPEC "\
1167 %{!shared:crtend.o%s} %{shared:crtendS.o%s} \
1168 ncrtn.o%s"
1169
1170 #define LINK_START_NETBSD_SPEC "\
1171 "
1172
1173 #define LINK_OS_NETBSD_SPEC "\
1174 %{!shared: %{!static: \
1175   %{rdynamic:-export-dynamic} \
1176   %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}"
1177
1178 #define CPP_OS_NETBSD_SPEC "\
1179 -D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__"
1180
1181 /* WindISS support.  */
1182
1183 #define LIB_WINDISS_SPEC "--start-group -li -lcfp -lwindiss -lram -limpl -limpfp --end-group"
1184
1185 #define CPP_OS_WINDISS_SPEC "\
1186 -D__rtasim \
1187 -D__EABI__ \
1188 -D__ppc \
1189 %{!msoft-float: -D__hardfp} \
1190 "
1191
1192 #define STARTFILE_WINDISS_SPEC "crt0.o%s crtbegin.o%s"
1193
1194 #define ENDFILE_WINDISS_SPEC "crtend.o%s"
1195
1196 #define LINK_START_WINDISS_SPEC ""
1197
1198 #define LINK_OS_WINDISS_SPEC ""
1199
1200 /* Define any extra SPECS that the compiler needs to generate.  */
1201 /* Override rs6000.h definition.  */
1202 #undef  SUBTARGET_EXTRA_SPECS
1203 #define SUBTARGET_EXTRA_SPECS                                           \
1204   { "cpp_sysv",                 CPP_SYSV_SPEC },                        \
1205   { "crtsavres_default",        CRTSAVRES_DEFAULT_SPEC },              \
1206   { "lib_ads",                  LIB_ADS_SPEC },                         \
1207   { "lib_yellowknife",          LIB_YELLOWKNIFE_SPEC },                 \
1208   { "lib_mvme",                 LIB_MVME_SPEC },                        \
1209   { "lib_sim",                  LIB_SIM_SPEC },                         \
1210   { "lib_freebsd",              LIB_FREEBSD_SPEC },                     \
1211   { "lib_gnu",                  LIB_GNU_SPEC },                         \
1212   { "lib_linux",                LIB_LINUX_SPEC },                       \
1213   { "lib_netbsd",               LIB_NETBSD_SPEC },                      \
1214   { "lib_windiss",              LIB_WINDISS_SPEC },                     \
1215   { "lib_default",              LIB_DEFAULT_SPEC },                     \
1216   { "startfile_ads",            STARTFILE_ADS_SPEC },                   \
1217   { "startfile_yellowknife",    STARTFILE_YELLOWKNIFE_SPEC },           \
1218   { "startfile_mvme",           STARTFILE_MVME_SPEC },                  \
1219   { "startfile_sim",            STARTFILE_SIM_SPEC },                   \
1220   { "startfile_freebsd",        STARTFILE_FREEBSD_SPEC },               \
1221   { "startfile_gnu",            STARTFILE_GNU_SPEC },                   \
1222   { "startfile_linux",          STARTFILE_LINUX_SPEC },                 \
1223   { "startfile_netbsd",         STARTFILE_NETBSD_SPEC },                \
1224   { "startfile_windiss",        STARTFILE_WINDISS_SPEC },               \
1225   { "startfile_default",        STARTFILE_DEFAULT_SPEC },               \
1226   { "endfile_ads",              ENDFILE_ADS_SPEC },                     \
1227   { "endfile_yellowknife",      ENDFILE_YELLOWKNIFE_SPEC },             \
1228   { "endfile_mvme",             ENDFILE_MVME_SPEC },                    \
1229   { "endfile_sim",              ENDFILE_SIM_SPEC },                     \
1230   { "endfile_freebsd",          ENDFILE_FREEBSD_SPEC },                 \
1231   { "endfile_gnu",              ENDFILE_GNU_SPEC },                     \
1232   { "endfile_linux",            ENDFILE_LINUX_SPEC },                   \
1233   { "endfile_netbsd",           ENDFILE_NETBSD_SPEC },                  \
1234   { "endfile_windiss",          ENDFILE_WINDISS_SPEC },                 \
1235   { "endfile_default",          ENDFILE_DEFAULT_SPEC },                 \
1236   { "link_path",                LINK_PATH_SPEC },                       \
1237   { "link_shlib",               LINK_SHLIB_SPEC },                      \
1238   { "link_target",              LINK_TARGET_SPEC },                     \
1239   { "link_start",               LINK_START_SPEC },                      \
1240   { "link_start_ads",           LINK_START_ADS_SPEC },                  \
1241   { "link_start_yellowknife",   LINK_START_YELLOWKNIFE_SPEC },          \
1242   { "link_start_mvme",          LINK_START_MVME_SPEC },                 \
1243   { "link_start_sim",           LINK_START_SIM_SPEC },                  \
1244   { "link_start_freebsd",       LINK_START_FREEBSD_SPEC },              \
1245   { "link_start_gnu",           LINK_START_GNU_SPEC },                  \
1246   { "link_start_linux",         LINK_START_LINUX_SPEC },                \
1247   { "link_start_netbsd",        LINK_START_NETBSD_SPEC },               \
1248   { "link_start_windiss",       LINK_START_WINDISS_SPEC },              \
1249   { "link_start_default",       LINK_START_DEFAULT_SPEC },              \
1250   { "link_os",                  LINK_OS_SPEC },                         \
1251   { "link_os_ads",              LINK_OS_ADS_SPEC },                     \
1252   { "link_os_yellowknife",      LINK_OS_YELLOWKNIFE_SPEC },             \
1253   { "link_os_mvme",             LINK_OS_MVME_SPEC },                    \
1254   { "link_os_sim",              LINK_OS_SIM_SPEC },                     \
1255   { "link_os_freebsd",          LINK_OS_FREEBSD_SPEC },                 \
1256   { "link_os_linux",            LINK_OS_LINUX_SPEC },                   \
1257   { "link_os_gnu",              LINK_OS_GNU_SPEC },                     \
1258   { "link_os_netbsd",           LINK_OS_NETBSD_SPEC },                  \
1259   { "link_os_windiss",          LINK_OS_WINDISS_SPEC },                 \
1260   { "link_os_default",          LINK_OS_DEFAULT_SPEC },                 \
1261   { "cc1_endian_big",           CC1_ENDIAN_BIG_SPEC },                  \
1262   { "cc1_endian_little",        CC1_ENDIAN_LITTLE_SPEC },               \
1263   { "cc1_endian_default",       CC1_ENDIAN_DEFAULT_SPEC },              \
1264   { "cpp_os_ads",               CPP_OS_ADS_SPEC },                      \
1265   { "cpp_os_yellowknife",       CPP_OS_YELLOWKNIFE_SPEC },              \
1266   { "cpp_os_mvme",              CPP_OS_MVME_SPEC },                     \
1267   { "cpp_os_sim",               CPP_OS_SIM_SPEC },                      \
1268   { "cpp_os_freebsd",           CPP_OS_FREEBSD_SPEC },                  \
1269   { "cpp_os_gnu",               CPP_OS_GNU_SPEC },                      \
1270   { "cpp_os_linux",             CPP_OS_LINUX_SPEC },                    \
1271   { "cpp_os_netbsd",            CPP_OS_NETBSD_SPEC },                   \
1272   { "cpp_os_windiss",           CPP_OS_WINDISS_SPEC },                  \
1273   { "cpp_os_default",           CPP_OS_DEFAULT_SPEC },
1274
1275 /* Define this macro as a C expression for the initializer of an
1276    array of string to tell the driver program which options are
1277    defaults for this target and thus do not need to be handled
1278    specially when using `MULTILIB_OPTIONS'.
1279
1280    Do not define this macro if `MULTILIB_OPTIONS' is not defined in
1281    the target makefile fragment or if none of the options listed in
1282    `MULTILIB_OPTIONS' are set by default.  *Note Target Fragment::.  */
1283
1284 #define MULTILIB_DEFAULTS { "mbig", "mcall-sysv" }
1285
1286 /* Define this macro if the code for function profiling should come
1287    before the function prologue.  Normally, the profiling code comes
1288    after.  */
1289 #define PROFILE_BEFORE_PROLOGUE 1
1290
1291 /* Function name to call to do profiling.  */
1292 #define RS6000_MCOUNT "_mcount"
1293
1294 /* Define this macro (to a value of 1) if you want to support the
1295    Win32 style pragmas #pragma pack(push,<n>)' and #pragma
1296    pack(pop)'.  The pack(push,<n>) pragma specifies the maximum
1297    alignment (in bytes) of fields within a structure, in much the
1298    same way as the __aligned__' and __packed__' __attribute__'s
1299    do.  A pack value of zero resets the behavior to the default.
1300    Successive invocations of this pragma cause the previous values to
1301    be stacked, so that invocations of #pragma pack(pop)' will return
1302    to the previous value.  */
1303
1304 #define HANDLE_PRAGMA_PACK_PUSH_POP 1
1305
1306 /* Define library calls for quad FP operations.  These are all part of the
1307    PowerPC 32bit ABI.  */
1308 #define ADDTF3_LIBCALL "_q_add"
1309 #define DIVTF3_LIBCALL "_q_div"
1310 #define EXTENDDFTF2_LIBCALL "_q_dtoq"
1311 #define EQTF2_LIBCALL "_q_feq"
1312 #define GETF2_LIBCALL "_q_fge"
1313 #define GTTF2_LIBCALL "_q_fgt"
1314 #define LETF2_LIBCALL "_q_fle"
1315 #define LTTF2_LIBCALL "_q_flt"
1316 #define NETF2_LIBCALL "_q_fne"
1317 #define FLOATSITF2_LIBCALL "_q_itoq"
1318 #define MULTF3_LIBCALL "_q_mul"
1319 #define NEGTF2_LIBCALL "_q_neg"
1320 #define TRUNCTFDF2_LIBCALL "_q_qtod"
1321 #define FIX_TRUNCTFSI2_LIBCALL "_q_qtoi"
1322 #define TRUNCTFSF2_LIBCALL "_q_qtos"
1323 #define FIXUNS_TRUNCTFSI2_LIBCALL "_q_qtou"
1324 #define SQRTTF_LIBCALL "_q_sqrt"
1325 #define EXTENDSFTF2_LIBCALL "_q_stoq"
1326 #define SUBTF3_LIBCALL "_q_sub"
1327 #define FLOATUNSSITF2_LIBCALL "_q_utoq"
1328
1329 #define INIT_TARGET_OPTABS                                              \
1330   do {                                                                  \
1331     if (TARGET_HARD_FLOAT)                                              \
1332       {                                                                 \
1333         add_optab->handlers[(int) TFmode].libfunc                       \
1334           = init_one_libfunc (ADDTF3_LIBCALL);                          \
1335         sub_optab->handlers[(int) TFmode].libfunc                       \
1336           = init_one_libfunc (SUBTF3_LIBCALL);                          \
1337         neg_optab->handlers[(int) TFmode].libfunc                       \
1338           = init_one_libfunc (NEGTF2_LIBCALL);                          \
1339         smul_optab->handlers[(int) TFmode].libfunc                      \
1340           = init_one_libfunc (MULTF3_LIBCALL);                          \
1341         sdiv_optab->handlers[(int) TFmode].libfunc                      \
1342           = init_one_libfunc (DIVTF3_LIBCALL);                          \
1343         eqtf2_libfunc = init_one_libfunc (EQTF2_LIBCALL);               \
1344         netf2_libfunc = init_one_libfunc (NETF2_LIBCALL);               \
1345         gttf2_libfunc = init_one_libfunc (GTTF2_LIBCALL);               \
1346         getf2_libfunc = init_one_libfunc (GETF2_LIBCALL);               \
1347         lttf2_libfunc = init_one_libfunc (LTTF2_LIBCALL);               \
1348         letf2_libfunc = init_one_libfunc (LETF2_LIBCALL);               \
1349         trunctfsf2_libfunc = init_one_libfunc (TRUNCTFSF2_LIBCALL);     \
1350         trunctfdf2_libfunc = init_one_libfunc (TRUNCTFDF2_LIBCALL);     \
1351         extendsftf2_libfunc = init_one_libfunc (EXTENDSFTF2_LIBCALL);   \
1352         extenddftf2_libfunc = init_one_libfunc (EXTENDDFTF2_LIBCALL);   \
1353         floatsitf_libfunc = init_one_libfunc (FLOATSITF2_LIBCALL);      \
1354         fixtfsi_libfunc = init_one_libfunc (FIX_TRUNCTFSI2_LIBCALL);    \
1355         fixunstfsi_libfunc                                              \
1356           = init_one_libfunc (FIXUNS_TRUNCTFSI2_LIBCALL);               \
1357         if (TARGET_PPC_GPOPT || TARGET_POWER2)                          \
1358           sqrt_optab->handlers[(int) TFmode].libfunc                    \
1359             = init_one_libfunc (SQRTTF_LIBCALL);                        \
1360       }                                                                 \
1361   } while (0)
1362
1363 /* Select a format to encode pointers in exception handling data.  CODE
1364    is 0 for data, 1 for code labels, 2 for function pointers.  GLOBAL is
1365    true if the symbol may be affected by dynamic relocations.  */
1366 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL)                            \
1367   ((flag_pic || TARGET_RELOCATABLE)                                          \
1368    ? (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4) \
1369    : DW_EH_PE_absptr)
1370
1371 #define TARGET_ASM_EXCEPTION_SECTION readonly_data_section
1372
1373 #define DOUBLE_INT_ASM_OP "\t.quad\t"
1374
1375 /* Generate entries in .fixup for relocatable addresses.  */
1376 #define RELOCATABLE_NEEDS_FIXUP