Fix cut and paste error in last change
[official-gcc.git] / gcc / config / m68k / dpx2g.h
blobea5cd13d09983704393e16697ca6ed4922076c7f
1 /*
2 * dpx2g.h - Bull DPX/2 200 and 300 systems (m68k, SysVr3) with gas
3 */
5 #define USE_GAS
6 #include "m68k/dpx2.h"
8 #if 0 /* #ifndef USE_COLLECT2 */
10 /* We use set vectors for the constructors/destructors. */
12 #undef ASM_OUTPUT_CONSTRUCTOR
13 #undef ASM_OUTPUT_DESTRUCTOR
15 /* Although the gas we use can create .ctor and .dtor sections from N_SETT
16 stabs, it does not support section directives, so we need to have the loader
17 define the lists.
19 #define CTOR_LISTS_DEFINED_EXTERNALLY
21 /* similar to default, but allows for the table defined by ld with gcc.ifile.
22 nptrs is always 0. So we need to instead check that __DTOR_LIST__[1] != 0.
23 The old check is left in so that the same macro can be used if and when
24 a future version of gas does support section directives. */
26 #define DO_GLOBAL_DTORS_BODY {int nptrs = *(int *)__DTOR_LIST__; int i; \
27 if (nptrs == -1 || (__DTOR_LIST__[0] == 0 && __DTOR_LIST__[1] != 0)) \
28 for (nptrs = 0; __DTOR_LIST__[nptrs + 1] != 0; nptrs++); \
29 for (i = nptrs; i >= 1; i--) \
30 __DTOR_LIST__[i] (); }
32 #undef STARTFILE_SPEC
33 #define STARTFILE_SPEC \
34 "%{!r:gcc.ifile%s}\
35 %{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}\
36 huge.o%s"
38 #endif /* !USE_COLLECT2 */
40 #undef STARTFILE_SPEC
41 #define STARTFILE_SPEC \
42 "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}\
43 huge.o%s"
47 * we are using GAS
49 #undef EXTRA_SECTION_FUNCTIONS
50 #undef EXTRA_SECTIONS
51 /* Gas understands dollars in labels. */
52 #undef NO_DOLLAR_IN_LABEL
53 /* GAS does not understand .ident so don't output anything for #ident. */
54 #undef ASM_OUTPUT_IDENT
56 #undef ASM_LONG
57 #define ASM_LONG "\t.long"
60 * put const's in the text section
62 #define const_section() text_section()
63 #define fini_section() while (0)
65 #undef CTORS_SECTION_ASM_OP
66 #define CTORS_SECTION_ASM_OP "\t.data"
67 #undef DTORS_SECTION_ASM_OP
68 #define DTORS_SECTION_ASM_OP "\t.data"
69 #undef INIT_SECTION_ASM_OP
71 /* end of dpx2g.h */