patch for SVR5-based systems.
Robert Lipe
robertlipe@usa.net
Sat Mar 27 18:10:00 GMT 1999
This cleans up a wierdness when linking a native object was built with
-g with EGCS. It also activates DWARF-2 debugging for these two targets.
* i386/sysv5.h: New file to describe UnixWare7/SVR5.
* configure.in (i?86-UnixWare7*-sysv): Use it.
* i386/udk.h: Use sysv5.h. Activate Dwarf-2.
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.228
diff -u -p -r1.228 configure.in
--- configure.in 1999/03/26 16:04:05 1.228
+++ configure.in 1999/03/28 02:04:48
@@ -1368,7 +1368,7 @@ changequote(,)dnl
changequote([,])dnl
xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
xm_defines="USG POSIX"
- tm_file=i386/sysv4.h
+ tm_file=i386/sysv5.h
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"
Index: config/i386/sysv5.h
===================================================================
RCS file: sysv5.h
diff -N sysv5.h
--- /dev/null Sat Dec 5 20:30:03 1998
+++ sysv5.h Sat Mar 27 18:04:48 1999
@@ -0,0 +1,12 @@
+/* Target definitions for SystemV Release 5 (i.e. UnixWare 7) */
+
+#include "i386/sysv4.h"
+
+/* Dwarf2 is supported by native debuggers */
+
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+
+/* Add -lcrt for Dwarf2 abbreviation table */
+#undef LIB_SPEC
+#define LIB_SPEC "%{!shared:%{!symbolic:-lc -lcrt}}"
Index: config/i386/udk.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/udk.h,v
retrieving revision 1.2
diff -u -p -r1.2 udk.h
--- udk.h 1998/12/16 21:04:42 1.2
+++ udk.h 1999/03/28 02:04:48
@@ -6,7 +6,7 @@
/* We're very much the SVR4 target with "/udk" prepended to everything that's
interesting */
-#include "i386/sysv4.h"
+#include "i386/sysv5.h"
#undef MD_EXEC_PREFIX
#define MD_EXEC_PREFIX "/udk/usr/ccs/bin/"
@@ -14,10 +14,8 @@
#undef MD_STARTFILE_PREFIX
#define MD_STARTFILE_PREFIX "/udk/usr/ccs/lib/"
-#if 0 /* Later. */
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
-#endif
#define STANDARD_INCLUDE_DIR "/udk/usr/include"
More information about the Gcc-patches
mailing list