beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing so the gcc2_compiled symbol doesn...
authorFred Fish <fnf@be.com>
Mon, 7 Feb 2000 20:59:19 +0000 (20:59 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Feb 2000 20:59:19 +0000 (15:59 -0500)
        * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
        so the gcc2_compiled symbol doesn't confuse BeOS debuggers.

From-SVN: r31838

gcc/ChangeLog
gcc/config/i386/beos-elf.h

index 438fabad9233096f2f278bb3832e6ee74744df67..2d6e6748d160eb277d70f92a1f85b30525122209 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-07  Fred Fish  <fnf@be.com>
+
+       * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
+       so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
+
 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
 
        * cppfiles.c (deps_output): Count spacers in deps_column.
index 34d94f5d8a899fa4d76b6d1c6ef2d48927ae6173..cd51815085dd2ed757d17977881bbeebbfb43e63 100644 (file)
@@ -369,3 +369,15 @@ extern union tree_node *i386_pe_merge_decl_attributes ();
    without user intervention.  For instance, under Microsoft Windows
    symbols must be explicitly imported from shared libraries (DLLs).  */
 #define MULTIPLE_SYMBOL_SPACES
+
+/* A C statement to output assembler commands which will identify the object
+   file as having been compiled with GNU CC.  This isn't needed for BeOS
+   because we use DWARF and DWARF has an DW_AT_producer tag that does the
+   same thing.  BeOS debuggers, like bdb, that don't know about this hack
+   can get confused when they find two symbols with the same address, and
+   print the wrong one (gcc2_compiled) in things like backtraces.  The most
+   likely ill effect of disabling this is that a BeOS port of gdb would not
+   be able to tell that an executable was compiled with gcc if there was no
+   DWARF info. */
+#undef ASM_IDENTIFY_GCC
+#define ASM_IDENTIFY_GCC(FILE)