Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / contrib / gcc / config / freebsd.h
1 /* Base configuration file for all FreeBSD targets.
2    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* Common FreeBSD configuration. 
22    All FreeBSD architectures should include this file, which will specify
23    their commonalities.
24    Adapted from /usr/src/contrib/gcc/config/i386/freebsd.h,
25    /usr/src/contrib/gcc/config/svr4.h & 
26    egcs/gcc/config/i386/freebsd-elf.h by
27    David O'Brien <obrien@FreeBSD.org>.  */
28
29 /* $FreeBSD: src/contrib/gcc/config/freebsd.h,v 1.25.2.10 2002/06/20 23:12:36 obrien Exp $ */
30 /* $DragonFly: src/contrib/gcc/config/Attic/freebsd.h,v 1.2 2003/06/17 04:24:01 dillon Exp $ */
31
32
33 /* Cpp, assembler, linker, library, and startfile spec's.  */
34
35 /* This defines which switch letters take arguments.  On FreeBSD, most of
36    the normal cases (defined in gcc.c) apply, and we also have -h* and
37    -z* options (for the linker) (coming from SVR4).
38    We also have -R (alias --rpath), no -z, --soname (-h), --assert etc.  */
39
40 #define FBSD_SWITCH_TAKES_ARG(CHAR)                                     \
41   (DEFAULT_SWITCH_TAKES_ARG (CHAR)                                      \
42     || (CHAR) == 'h'                                                    \
43     || (CHAR) == 'z' /* ignored by ld */                                \
44     || (CHAR) == 'R')
45
46 #undef  SWITCH_TAKES_ARG
47 #define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
48
49 /* This defines which multi-letter switches take arguments.  */
50
51 #define FBSD_WORD_SWITCH_TAKES_ARG(STR)                                 \
52   (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                                  \
53    || !strcmp ((STR), "rpath") || !strcmp ((STR), "rpath-link")         \
54    || !strcmp ((STR), "soname") || !strcmp ((STR), "defsym")            \
55    || !strcmp ((STR), "assert") || !strcmp ((STR), "dynamic-linker"))
56
57 #undef  WORD_SWITCH_TAKES_ARG
58 #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
59
60 /* Place spaces around this string.  We depend on string splicing to produce
61    the final CPP_PREDEFINES value.  */
62
63 #define FBSD_CPP_PREDEFINES \
64   " -D__FreeBSD__=4 -D__FreeBSD_cc_version=460001 -Dunix -Asystem(unix) -Asystem(FreeBSD) "
65
66 #define FBSD_CPP_SPEC "                                                 \
67   %(cpp_cpu)                                                            \
68   %{!maout: -D__ELF__}                                                  \
69   %{munderscores: -D__UNDERSCORES__}                                    \
70   %{maout: %{!mno-underscores: -D__UNDERSCORES__}}                      \
71   %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}               \
72   %{posix:-D_POSIX_SOURCE}"
73
74 #undef  CPP_SPEC
75 #define CPP_SPEC FBSD_CPP_SPEC
76
77 /* Provide a LIB_SPEC appropriate for FreeBSD.  Before
78    __FreeBSD_version 500016, select the appropriate libc, depending on
79    whether we're doing profiling or need threads support.  (similar to
80    the default, except no -lg, and no -p).  At __FreeBSD_version
81    500016 and later, when threads support is requested include both
82    -lc and -lc_r instead of only -lc_r.  */
83
84 #undef  LIB_SPEC
85 #include <sys/param.h>
86 #if __FreeBSD_version >= 500016
87 #define LIB_SPEC "                                                      \
88   %{!shared:                                                            \
89     %{!pg: %{pthread:-lc_r} -lc}                                        \
90     %{pg:  %{pthread:-lc_r_p} -lc_p}                                    \
91   }"
92 #else
93 #define LIB_SPEC "                                                      \
94   %{!shared:                                                            \
95     %{!pg:                                                              \
96       %{!pthread:-lc}                                                   \
97       %{pthread:-lc_r}}                                                 \
98     %{pg:                                                               \
99       %{!pthread:-lc_p}                                                 \
100       %{pthread:-lc_r_p}}                                               \
101   }"
102 #endif
103
104
105 /************************[  Target stuff  ]***********************************/
106
107 /* All FreeBSD Architectures support the ELF object file format.  */
108 #undef  OBJECT_FORMAT_ELF
109 #define OBJECT_FORMAT_ELF
110
111 /* Don't assume anything about the header files.  */
112 #undef  NO_IMPLICIT_EXTERN_C
113 #define NO_IMPLICIT_EXTERN_C
114
115 /* Implicit library calls should use memcpy, not bcopy, etc.  */
116 #undef  TARGET_MEM_FUNCTIONS
117 #define TARGET_MEM_FUNCTIONS
118
119 /* Allow #sccs in preprocessor.  */
120 #undef  SCCS_DIRECTIVE
121 #define SCCS_DIRECTIVE
122
123 #undef  HAVE_ATEXIT
124 #define HAVE_ATEXIT
125
126 /* Code generation parameters.  */
127
128 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
129    we want to retain compatibility with older gcc versions
130    (even though the SVR4 ABI for the i386 says that records and unions are
131    returned in memory).  */
132 #undef  DEFAULT_PCC_STRUCT_RETURN
133 #define DEFAULT_PCC_STRUCT_RETURN 0
134
135 /* Writing `int' for a bitfield forces int alignment for the structure.  */
136 /* XXX: ok for Alpha??  */
137 #undef  PCC_BITFIELD_TYPE_MATTERS
138 #define PCC_BITFIELD_TYPE_MATTERS 1
139
140 /* Use periods rather than dollar signs in special g++ assembler names.
141    This ensures the configuration knows our system correctly so we can link
142    with libraries compiled with the native cc.  */
143 #undef NO_DOLLAR_IN_LABEL
144
145 /* The prefix to add to user-visible assembler symbols.
146    For System V Release 4 & ELF the convention is *not* to prepend a leading
147    underscore onto user-level symbol names.  */
148
149 #undef  USER_LABEL_PREFIX
150 #define USER_LABEL_PREFIX ""
151
152 /* Handle #pragma weak and #pragma pack.  */
153 #undef  HANDLE_SYSV_PRAGMA
154 #define HANDLE_SYSV_PRAGMA
155
156 /* While FreeBSD ELF no longer uses our home-grown crtbegin.o/crtend.o and thus
157    could switch to the DWARF2 unwinding mechanisms.  I don't want to make the
158    switch mid-branch.  So continue to use sjlj-exceptions.  */
159 #ifdef WANT_DWARF2_UNWIND
160 /* FreeBSD ELF will use DWARF2 unwinding in 5.0+, as some psABI requires it.  */
161 #define DWARF2_UNWIND_INFO 1
162 #else
163 /* Maintain compatibility with the FreeBSD {3,4}.x C++ ABI.  */
164 #define DWARF2_UNWIND_INFO 0
165 #endif
166
167 /* Do not use ``thunks'' to implement C++ vtables.  This method still has
168    fatal bugs.  Also, GCC 3.0 will have a new C++ ABI that may not even
169    support `thunks'.  */
170 #undef DEFAULT_VTABLE_THUNKS
171
172
173 /************************[  Assembler stuff  ]********************************/
174
175 /* Override the default comment-starter of "/".  */
176 #undef  ASM_COMMENT_START
177 #define ASM_COMMENT_START       "#"
178
179 /* Attach a special .ident directive to the end of the file to identify
180    the version of GCC which compiled this code.  The format of the .ident
181    string is patterned after the ones produced by native SVR4 C compilers.  */
182
183 #undef  IDENT_ASM_OP
184 #define IDENT_ASM_OP    "\t.ident\t"
185
186 /* Output #ident as a .ident.  */
187
188 #undef  ASM_OUTPUT_IDENT
189 #define ASM_OUTPUT_IDENT(FILE, NAME)                                    \
190   fprintf ((FILE), "%s\"%s\"\n", IDENT_ASM_OP, (NAME));
191
192 /* Identify the front-end which produced this file.  To keep symbol
193    space down, and not confuse kdb, only do this if the language is
194    not C. (svr4.h defines ASM_IDENTIFY_GCC but neglects this) */
195
196 #undef  ASM_IDENTIFY_LANGUAGE
197 #define ASM_IDENTIFY_LANGUAGE(FILE)                                     \
198   {                                                                     \
199     if (strcmp (lang_identify (), "c") != 0)                            \
200         output_lang_identify (FILE);                                    \
201   }
202
203 #undef  ASM_FILE_END
204 #define ASM_FILE_END(FILE)                                              \
205   do {                                                                  \
206     if (!flag_no_ident)                                                 \
207       fprintf ((FILE), "%s\"GCC: (GNU) %s %s\"\n",                      \
208                IDENT_ASM_OP, lang_identify(), version_string);          \
209   } while (0)
210
211 /* This is the pseudo-op used to generate a contiguous sequence of byte
212    values from a double-quoted string WITHOUT HAVING A TERMINATING NUL
213    AUTOMATICALLY APPENDED.  This is the same for most SVR4 assemblers.  */
214
215 #undef  ASCII_DATA_ASM_OP
216 #define ASCII_DATA_ASM_OP       "\t.ascii\t"
217
218 #undef  ASM_BYTE_OP
219 #define ASM_BYTE_OP             "\t.byte\t"
220
221 /* This is how to allocate empty space in some section.  The .zero
222    pseudo-op is used for this on most ELF assemblers.  */
223
224 #undef  SKIP_ASM_OP
225 #define SKIP_ASM_OP             "\t.zero\t"
226
227 /* A table of bytes codes used by the ASM_OUTPUT_ASCII and
228    ASM_OUTPUT_LIMITED_STRING macros.  Each byte in the table
229    corresponds to a particular byte value [0..255].  For any
230    given byte value, if the value in the corresponding table
231    position is zero, the given character can be output directly.
232    If the table value is 1, the byte must be output as a \ooo
233    octal escape.  If the tables value is anything else, then the
234    byte value should be output as a \ followed by the value
235    in the table.  Note that we can use standard UN*X escape
236    sequences for many control characters, but we don't use
237    \a to represent BEL because some SVR4 assemblers (e.g. on
238    the i386) don't know about that.  Also, we don't use \v
239    since some versions of gas, such as 2.2 did not accept it.  */
240
241 #define ESCAPES \
242 "\1\1\1\1\1\1\1\1btn\1fr\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
243 \0\0\"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
244 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\\0\0\0\
245 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\
246 \1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
247 \1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
248 \1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
249 \1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"
250
251 /* Some SVR4 assemblers have a limit on the number of characters which
252    can appear in the operand of a .string directive.  If your assembler
253    has such a limitation, you should define STRING_LIMIT to reflect that
254    limit.  Note that at least some SVR4 assemblers have a limit on the
255    actual number of bytes in the double-quoted string, and that they
256    count each character in an escape sequence as one byte.  Thus, an
257    escape sequence like \377 would count as four bytes.
258
259    If your target assembler doesn't support the .string directive, you
260    should define this to zero.
261 */
262
263 #undef  STRING_LIMIT
264 #define STRING_LIMIT    ((unsigned) 256)
265
266 #undef  STRING_ASM_OP
267 #define STRING_ASM_OP   "\t.string\t"
268
269 /* Output the label which precedes a jumptable.  Note that for all svr4/ELF
270    systems where we actually generate jumptables (which is to say every
271    SVR4 target except i386, where we use casesi instead) we put the jump-
272    tables into the .rodata section and since other stuff could have been
273    put into the .rodata section prior to any given jumptable, we have to
274    make sure that the location counter for the .rodata section gets pro-
275    perly re-aligned prior to the actual beginning of the jump table.  */
276
277 #undef  ALIGN_ASM_OP
278 #define ALIGN_ASM_OP    "\t.align\t"
279
280 /* This says how to output assembler code to declare an
281    uninitialized external linkage data object.  Under SVR4/ELF,
282    the linker seems to want the alignment of data objects
283    to depend on their types.  We do exactly that here.  */
284
285 #undef  COMMON_ASM_OP
286 #define COMMON_ASM_OP   "\t.comm\t"
287
288 /* This says how to output assembler code to declare an
289    uninitialized internal linkage data object.  Under SVR4/ELF,
290    the linker seems to want the alignment of data objects
291    to depend on their types.  We do exactly that here.  */
292
293 #undef  LOCAL_ASM_OP
294 #define LOCAL_ASM_OP    "\t.local\t"
295
296 #undef  ASM_OUTPUT_BEFORE_CASE_LABEL
297 #define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE, PREFIX, NUM, TABLE)          \
298   ASM_OUTPUT_ALIGN ((FILE), 2);
299
300 #undef  ASM_OUTPUT_CASE_LABEL
301 #define ASM_OUTPUT_CASE_LABEL(FILE, PREFIX, NUM, JUMPTABLE)             \
302   do {                                                                  \
303     ASM_OUTPUT_BEFORE_CASE_LABEL ((FILE), (PREFIX), (NUM), (JUMPTABLE)) \
304     ASM_OUTPUT_INTERNAL_LABEL ((FILE), (PREFIX), (NUM));                \
305   } while (0)
306
307 /* The standard SVR4/ELF assembler seems to require that certain builtin
308    library routines (e.g. .udiv) be explicitly declared as .globl
309    in each assembly file where they are referenced.  */
310
311 #undef  ASM_OUTPUT_EXTERNAL_LIBCALL
312 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN)                          \
313   ASM_GLOBALIZE_LABEL ((FILE), XSTR ((FUN), 0))
314
315 /* Support const sections and the ctors and dtors sections for g++.
316    Note that there appears to be two different ways to support const
317    sections at the moment.  You can either #define the symbol
318    READONLY_DATA_SECTION (giving it some code which switches to the
319    readonly data section) or else you can #define the symbols
320    EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
321    SELECT_RTX_SECTION.  We do both here just to be on the safe side.  
322    FreeBSD conditionalizes the use of ".section rodata" depending on
323    ELF mode - otherwise .text.  */
324
325 #undef  USE_CONST_SECTION
326 #define USE_CONST_SECTION       TARGET_ELF
327
328 #undef  CONST_SECTION_ASM_OP
329 #define CONST_SECTION_ASM_OP    "\t.section\t.rodata"
330
331 /* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
332
333    Note that we want to give these sections the SHF_WRITE attribute
334    because these sections will actually contain data (i.e. tables of
335    addresses of functions in the current root executable or shared library
336    file) and, in the case of a shared library, the relocatable addresses
337    will have to be properly resolved/relocated (and then written into) by
338    the dynamic linker when it actually attaches the given shared library
339    to the executing process.  (Note that on SVR4, you may wish to use the
340    `-z text' option to the ELF linker, when building a shared library, as
341    an additional check that you are doing everything right.  But if you do
342    use the `-z text' option when building a shared library, you will get
343    errors unless the .ctors and .dtors sections are marked as writable
344    via the SHF_WRITE attribute.)  */
345
346 #undef  CTORS_SECTION_ASM_OP
347 #define CTORS_SECTION_ASM_OP    "\t.section\t.ctors,\"aw\""
348 #undef  DTORS_SECTION_ASM_OP
349 #define DTORS_SECTION_ASM_OP    "\t.section\t.dtors,\"aw\""
350
351 /* On SVR4, we *do* have support for the .init and .fini sections, and we
352    can put stuff in there to be executed before and after `main'.  We let
353    crtstuff.c and other files know this by defining the following symbols.
354    The definitions say how to change sections to the .init and .fini
355    sections.  This is the same for all known SVR4 assemblers.  */
356
357 #undef  INIT_SECTION_ASM_OP
358 #define INIT_SECTION_ASM_OP     "\t.section\t.init"
359 #undef  FINI_SECTION_ASM_OP
360 #define FINI_SECTION_ASM_OP     "\t.section\t.fini"
361
362 /* A default list of other sections which we might be "in" at any given
363    time.  For targets that use additional sections (e.g. .tdesc) you
364    should override this definition in the target-specific file which
365    includes this file.  */
366
367 #undef  EXTRA_SECTIONS
368 #define EXTRA_SECTIONS  in_const, in_ctors, in_dtors
369
370 /* A default list of extra section function definitions.  For targets
371    that use additional sections (e.g. .tdesc) you should override this
372    definition in the target-specific file which includes this file.  */
373
374 #undef  EXTRA_SECTION_FUNCTIONS
375 #define EXTRA_SECTION_FUNCTIONS                                         \
376   CONST_SECTION_FUNCTION                                                \
377   CTORS_SECTION_FUNCTION                                                \
378   DTORS_SECTION_FUNCTION
379
380 #undef  READONLY_DATA_SECTION
381 #define READONLY_DATA_SECTION() const_section ()
382
383 extern void text_section ();
384
385 #undef  CONST_SECTION_FUNCTION
386 #define CONST_SECTION_FUNCTION                                          \
387   void                                                                  \
388   const_section ()                                                      \
389   {                                                                     \
390     if (!USE_CONST_SECTION)                                             \
391       text_section();                                                   \
392     else if (in_section != in_const)                                    \
393       {                                                                 \
394         fprintf (asm_out_file, "%s\n", CONST_SECTION_ASM_OP);           \
395         in_section = in_const;                                          \
396       }                                                                 \
397   }
398
399 #undef  CTORS_SECTION_FUNCTION
400 #define CTORS_SECTION_FUNCTION                                          \
401   void                                                                  \
402   ctors_section ()                                                      \
403   {                                                                     \
404     if (in_section != in_ctors)                                         \
405       {                                                                 \
406         fprintf (asm_out_file, "%s\n", CTORS_SECTION_ASM_OP);           \
407         in_section = in_ctors;                                          \
408       }                                                                 \
409   }
410
411 #undef  DTORS_SECTION_FUNCTION
412 #define DTORS_SECTION_FUNCTION                                          \
413   void                                                                  \
414   dtors_section ()                                                      \
415   {                                                                     \
416     if (in_section != in_dtors)                                         \
417       {                                                                 \
418         fprintf (asm_out_file, "%s\n", DTORS_SECTION_ASM_OP);           \
419         in_section = in_dtors;                                          \
420       }                                                                 \
421   }
422
423 /* A C statement or statements to switch to the appropriate
424    section for output of RTX in mode MODE.  RTX is some kind
425    of constant in RTL.  The argument MODE is redundant except
426    in the case of a `const_int' rtx.  Currently, these always
427    go into the const section.  */
428
429 #undef  SELECT_RTX_SECTION
430 #define SELECT_RTX_SECTION(MODE, RTX)   const_section()
431
432 /* Define the strings used for the special svr4/ELF .type and .size
433    directives.  These strings generally do not vary from one svr4/ELF
434    system to another.  */
435
436 #undef  TYPE_ASM_OP
437 #define TYPE_ASM_OP     "\t.type\t"
438 #undef  SIZE_ASM_OP
439 #define SIZE_ASM_OP     "\t.size\t"
440
441 /* This is how we tell the assembler that a symbol is weak.  */
442
443 #undef  ASM_WEAKEN_LABEL
444 #define ASM_WEAKEN_LABEL(FILE, NAME)                                    \
445   do {                                                                  \
446     fputs ("\t.globl\t", (FILE)); assemble_name ((FILE), (NAME));       \
447     fputc ('\n', (FILE));                                               \
448     fputs ("\t.weak\t", (FILE)); assemble_name ((FILE), (NAME));        \
449     fputc ('\n', (FILE));                                               \
450   } while (0)
451
452 /* The following macro defines the [default] format used with ELF to output
453    the second operand of the .type assembler directive.  */
454
455 #undef  TYPE_OPERAND_FMT
456 #define TYPE_OPERAND_FMT        "@%s"
457
458 /* Write the extra assembler code needed to declare a function's result.
459    Most svr4/ELF assemblers don't require any special declaration of the
460    result value.  */
461
462 #undef  ASM_DECLARE_RESULT
463 #define ASM_DECLARE_RESULT(FILE, RESULT)
464
465 /* These macros generate the special .type and .size directives which
466    are used to set the corresponding fields of the linker symbol table
467    entries in an ELF object file under SVR4/ELF.  These macros also output
468    the starting labels for the relevant functions/objects.  */
469
470 /* Write the extra assembler code needed to declare an object properly.  */
471
472 #undef  ASM_DECLARE_OBJECT_NAME
473 #define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL)                       \
474   do {                                                                  \
475     fprintf (FILE, "%s ", TYPE_ASM_OP);                                 \
476     assemble_name (FILE, NAME);                                         \
477     putc (',', FILE);                                                   \
478     fprintf (FILE, TYPE_OPERAND_FMT, "object");                         \
479     putc ('\n', FILE);                                                  \
480     size_directive_output = 0;                                          \
481     if (!flag_inhibit_size_directive && DECL_SIZE (DECL))               \
482       {                                                                 \
483         size_directive_output = 1;                                      \
484         fprintf (FILE, "%s ", SIZE_ASM_OP);                             \
485         assemble_name (FILE, NAME);                                     \
486         putc (',', FILE);                                               \
487         fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                         \
488                  int_size_in_bytes (TREE_TYPE (DECL)));                 \
489         fputc ('\n', FILE);                                             \
490       }                                                                 \
491     ASM_OUTPUT_LABEL(FILE, NAME);                                       \
492   } while (0)
493
494 /* Output the size directive for a decl in rest_of_decl_compilation
495    in the case where we did not do so before the initializer.
496    Once we find the error_mark_node, we know that the value of
497    size_directive_output was set
498    by ASM_DECLARE_OBJECT_NAME when it was run for the same decl.  */
499
500 #undef  ASM_FINISH_DECLARE_OBJECT
501 #define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END)        \
502   do {                                                                  \
503     char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0);                   \
504     if (!flag_inhibit_size_directive && DECL_SIZE (DECL)                \
505         && ! AT_END && TOP_LEVEL                                        \
506         && DECL_INITIAL (DECL) == error_mark_node                       \
507         && !size_directive_output)                                      \
508       {                                                                 \
509         size_directive_output = 1;                                      \
510         fprintf (FILE, "%s ", SIZE_ASM_OP);                             \
511         assemble_name (FILE, name);                                     \
512         putc (',', FILE);                                               \
513         fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                         \
514                 int_size_in_bytes (TREE_TYPE (DECL)));                  \
515         fputc ('\n', FILE);                                             \
516       }                                                                 \
517   } while (0)
518
519
520 /************************[  Debugger stuff  ]*********************************/
521
522 /* All ELF targets can support DWARF-2.  */
523 #undef  DWARF2_DEBUGGING_INFO
524 #define DWARF2_DEBUGGING_INFO
525
526 /* This is BSD, so we want the DBX format.  */
527 #undef  DBX_DEBUGGING_INFO
528 #define DBX_DEBUGGING_INFO
529
530 /* This is BSD, so use stabs instead of DWARF debug format.  */
531 #undef  PREFERRED_DEBUGGING_TYPE
532 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
533
534 /* But allow STABS to be supported as well.
535         Note that we want to override some definition settings done for some
536         architecture's native OS's tools that don't apply to us.  */
537 #undef ASM_IDENTIFY_GCC
538 #undef ASM_IDENTIFY_LANGUAGE