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