Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/toolchain/gcc/config/sparc fix the -m32 code to use...



details:   https://anonhg.NetBSD.org/src/rev/e48a507479ea
branches:  trunk
changeset: 514342:e48a507479ea
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Aug 30 09:30:40 2001 +0000

description:
fix the -m32 code to use /usr/lib/32 paths.  don't pass -mcmodel to the 32bit cc1, it doesn't like that.

diffstat:

 gnu/dist/toolchain/gcc/config/sparc/netbsd64.h |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (64 lines):

diff -r 92e9ada9f2e6 -r e48a507479ea gnu/dist/toolchain/gcc/config/sparc/netbsd64.h
--- a/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h    Thu Aug 30 09:20:17 2001 +0000
+++ b/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h    Thu Aug 30 09:30:40 2001 +0000
@@ -15,6 +15,9 @@
 
 #include <sparc/sp64-elf.h>
 
+#undef INIT_SUBTARGET_OPTABS  
+#define INIT_SUBTARGET_OPTABS  
+
 #include <sparc/netbsd-elf-common.h>
 
 #undef CPP_SUBTARGET_SPEC
@@ -50,11 +53,11 @@
 #undef STARTFILE_SPEC32
 #define        STARTFILE_SPEC32 \
  "%{!shared: \
-     %{pg:/emul/netbsd32/usr/lib/gcrt0%O%s} \
+     %{pg:/usr/lib/32/gcrt0%O%s} \
      %{!pg: \
-        %{p:/emul/netbsd32/usr/lib/gcrt0%O%s} \
-        %{!p:/emul/netbsd32/usr/lib/crt0%O%s}}} \
-   %{!shared:/emul/netbsd32/usr/lib/crtbegin%O%s} %{shared:/emul/netbsd32/usr/lib/crtbeginS%O%s}"
+        %{p:/usr/lib/32/gcrt0%O%s} \
+        %{!p:/usr/lib/32/crt0%O%s}}} \
+   %{!shared:/usr/lib/32/crtbegin%O%s} %{shared:/usr/lib/32/crtbeginS%O%s}"
 
 #undef STARTFILE_SPEC
 #if DEFAULT_ARCH32_P
@@ -75,7 +78,7 @@
 
 #undef ENDFILE_SPEC32
 #define        ENDFILE_SPEC32 \
- "%{!shared:/emul/netbsd32/usr/lib/crtend%O%s} %{shared:/emul/netbsd32/usr/lib/crtendS%O%s}"
+ "%{!shared:/usr/lib/32/crtend%O%s} %{shared:/usr/lib/32/crtendS%O%s}"
 
 #undef ENDFILE_SPEC
 #if DEFAULT_ARCH32_P
@@ -100,7 +103,7 @@
 #undef LINK_ARCH32_SPEC
 #define LINK_ARCH32_SPEC \
  "-m elf32_sparc \
-  -Y P,/emul/netbsd32/usr/lib \
+  -Y P,/usr/lib/32 \
   %{assert*} %{R*} \
   %{shared:-shared} \
   %{!shared: \
@@ -137,7 +140,7 @@
 %{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
 %{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
 %{m64:-mptr64 -mcpu=ultrasparc -mstack-bias %{p*:-mcmodel=medlow} 
-%{p:-mcmodel=medlow} } \
+%{p:-mcmodel=medlow}} \
 "
 #else
 #define CC1_SPEC "\
@@ -146,7 +149,6 @@
 %{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
 %{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
 %{m32:-mptr32 -mcpu=cypress -mno-stack-bias} \
-%{p*:-mcmodel=medlow} \
 "
 #endif
 



Home | Main Index | Thread Index | Old Index