This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Switch i386-sequent-sysv4 to DWARF 2
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 17 Oct 2003 13:21:55 -0400
- Subject: [patch] Switch i386-sequent-sysv4 to DWARF 2
This is necessary to get i386-sequent-sysv4 to build, since DWARF 1 support
has bugs which prevent it from building libgcc. It's a good idea anyway.
OK for mainline?
Please tell me if I've used anything obsolete; I'm kind of unclear about
the state of the art in setting debug formats.
* config/ptx4.h: Switch to DWARF 2; update comments.
Index: ptx4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ptx4.h,v
retrieving revision 1.22
diff -u -r1.22 ptx4.h
--- ptx4.h 27 Sep 2003 04:48:11 -0000 1.22
+++ ptx4.h 10 Oct 2003 17:21:08 -0000
@@ -1,7 +1,7 @@
-/* Operating system specific defines to be used when targeting GCC for some
- generic System V Release 4 system.
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
- Contributed by Ron Guilmette (rfg@monkeys.com).
+/* Operating system specific defines to be used when targeting GCC for
+ Sequent's Dynix/ptx v4 and later.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
+ Generic SysV4 file Contributed by Ron Guilmette (rfg@monkeys.com).
Renamed and changed to suit Dynix/ptx v4 and later.
Modified by Tim Wright (timw@sequent.com).
Modified by Janis Johnson (janis@us.ibm.com).
@@ -28,11 +28,13 @@
/* Define a symbol indicating that we are using svr4.h. */
#define USING_SVR4_H
-/* Use DWARF debugging info by default. */
+/* Use DWARF 2 debugging info by default. */
#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+#undef DWARF_DEBUGGING_INFO
+#define DWARF2_DEBUGGING_INFO 1
/* Cpp, assembler, linker, library, and startfile spec's. */
@@ -231,3 +233,4 @@
assemble_name ((FILE), (NAME)); \
fprintf ((FILE), ",%lu\n", (unsigned long)(SIZE)); \
} while (0)
+
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html