]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Thx to Eric Botcazou, Andrew Pinski and Mark Kettenis for this one.
authorMarc Espie <espie@openbsd.org>
Mon, 31 Jan 2005 18:51:26 +0000 (18:51 +0000)
committerMarc Espie <espie@gcc.gnu.org>
Mon, 31 Jan 2005 18:51:26 +0000 (18:51 +0000)
Turns out OpenBSD was mistakenly including an embedded system fragment,
and thus outputting stabs debug by default.

Once the only needed definition is saved from that file, we happily compile
with default dwarf2.   The rest of the toolchain is happy, and any recent
gdb works very well with that...

This obviously improves the stability of the compiler, since dwarf2 output
is so much more well-tested than stabs on elf platforms...

2005-01-31  Marc Espie <espie@openbsd.org>

* config.gcc: Don't include embedded systems fragment, switches default
debugging format to ELF.
* config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
longer pick it up there.

From-SVN: r94488

gcc/ChangeLog
gcc/config.gcc
gcc/config/i386/openbsdelf.h

index 5b7840bc7f7e5fcdc8ede0ef5a14bab414526f1a..7591aecc78608c9d8661a79a36be1b7921498bca 100644 (file)
@@ -1,3 +1,10 @@
+2005-01-31  Marc Espie <espie@openbsd.org>
+
+       * config.gcc: Don't include embedded systems fragment, switches default
+       debugging format to ELF.
+       * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no 
+       longer pick it up there.
+
 2005-01-31  Dale Johannesen  <dalej@apple.com>
        
        * config/rs6000/darwin.md (movsf_low_di):  Make work.
index 381df169eb36eeb87d8855c28e227f496ee5b974..1c6e2fa46d8fc8edc7be03ce94f045d7dd953c98 100644 (file)
@@ -946,11 +946,10 @@ i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
        use_collect2=yes
        ;;
 i[34567]86-*-openbsd*)
-       tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
+       tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
        tm_file="${tm_file} openbsd.h i386/openbsdelf.h"
        gas=yes
        gnu_ld=yes
-       stabs=yes
        ;;
 i[34567]86-*-coff*)
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
index 71055ceca516d3ed89461dcbde66e6da9095225a..1e03a00390a29a618920be875d2e9c4fbc734c84 100644 (file)
@@ -27,6 +27,8 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_COMMENT_START
 #define ASM_COMMENT_START "#"
 
+#undef DBX_REGISTER_NUMBER
+#define DBX_REGISTER_NUMBER(n)  svr4_dbx_register_map[n]
 
 /* This goes away when the math-emulator is fixed */
 #undef TARGET_DEFAULT