bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc-2.95.2 Solaris 2.8 patch


From: Eddie C. Dost
Subject: gcc-2.95.2 Solaris 2.8 patch
Date: Fri, 29 Dec 2000 22:36:50 +0100 (MET)

Hi,

to run gcc 2.95.2 under Solaris 2.8 in a 64 bit environment we needed
the appended patch. It sets DWARF-2 as the default debug info, and somehow
works around an undefined PATH_MAX.


Eddie C. Dost               senior software engineer                ATecoM GmbH
address@hidden                 address@hidden                 Kaiserstr. 100
Phone: +49 2407 9586 0       Fax: +49 2407 9586 44         D-52134 Herzogenrath
GSM:   +49 172 9312808                                                  Germany
--
diff -u -r gcc-2.95.2/gcc/config/sparc/gmon-sol2.c 
../../gcc-2.95.2/gcc/config/sparc/gmon-sol2.c
--- gcc-2.95.2/gcc/config/sparc/gmon-sol2.c     Sun Mar  7 06:46:26 1999
+++ ../../gcc-2.95.2/gcc/config/sparc/gmon-sol2.c       Thu Dec 28 21:46:04 2000
@@ -38,6 +38,12 @@
 #include "config.h"
 #include "system.h"
 
+#include <limits.h>
+#ifndef PATH_MAX
+#define PATH_MAX        1024    /* max # of characters in a path name */
+#endif
+
+
 #if 0
 #include "sparc/gmon.h"
 #else
diff -u -r gcc-2.95.2/gcc/config/sparc/sol2-sld-64.h 
../../gcc-2.95.2/gcc/config/sparc/sol2-sld-64.h
--- gcc-2.95.2/gcc/config/sparc/sol2-sld-64.h   Wed Dec 16 22:13:25 1998
+++ ../../gcc-2.95.2/gcc/config/sparc/sol2-sld-64.h     Fri Dec 29 19:27:59 2000
@@ -5,12 +5,16 @@
 
 #include "sparc/sol2.h"
 
-/* At least up through Solaris 2.6,
-   the system linker does not work with DWARF or DWARF2,
-   since it does not have working support for relocations
-   to unaligned data.  */
+/* System V Release 4 uses DWARF debugging info.
+   GDB doesn't support 64 bit stabs yet and the desired debug format is DWARF
+   anyway so it is the default.  */
 
-#define LINKER_DOES_NOT_WORK_WITH_DWARF2
+#define DWARF_DEBUGGING_INFO
+#define DWARF2_DEBUGGING_INFO
+#define DBX_DEBUGGING_INFO
+
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
 /* A 64 bit v9 compiler with stack-bias */
 
diff -u -r gcc-2.95.2/gcc/config/sparc/sol2.h 
../../gcc-2.95.2/gcc/config/sparc/sol2.h
--- gcc-2.95.2/gcc/config/sparc/sol2.h  Wed Dec 16 22:13:27 1998
+++ ../../gcc-2.95.2/gcc/config/sparc/sol2.h    Fri Dec 29 19:18:05 2000
@@ -71,8 +71,9 @@
 
 /* We use stabs-in-elf for debugging, because that is what the native
    toolchain uses.  */
-#undef PREFERRED_DEBUGGING_TYPE
+#ifndef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#endif
 
 /* The Solaris 2 assembler uses .skip, not .zero, so put this back. */
 #undef ASM_OUTPUT_SKIP
diff -u -r gcc-2.95.2/libchill/basicio.c ../../gcc-2.95.2/libchill/basicio.c
--- gcc-2.95.2/libchill/basicio.c       Mon Jan 11 14:09:11 1999
+++ ../../gcc-2.95.2/libchill/basicio.c Thu Dec 28 21:59:39 2000
@@ -48,6 +48,11 @@
 #endif
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX        1024    /* max # of characters in a path name */
+#endif
+
+
 static
 void
 GetSetAttributes( Association_Mode* the_assoc )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]