use collect2. If we don't, egcs emits wrong stabs for global CTORS in

-O3.   With collect2, it no longer uses stabs for that, hence the bug is
no longer visible...
This commit is contained in:
espie 1998-10-11 22:33:07 +00:00
parent 280635435f
commit 439b9b13d4
2 changed files with 30 additions and 20 deletions

View File

@ -1,5 +1,5 @@
--- gcc/configure.in.orig Fri Aug 28 02:19:04 1998
+++ gcc/configure.in Sun Oct 11 03:10:08 1998
+++ gcc/configure.in Mon Oct 12 00:27:08 1998
@@ -868,6 +868,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
@ -10,7 +10,7 @@
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ tmake_file=t-openbsd
+ #use_collect2=yes
+ use_collect2=yes
+ ;;
i[[34567]]86-*-coff*)
tm_file=i386/i386-coff.h
@ -26,12 +26,12 @@
+ fixincludes=Makefile.in
+ tmake_file=t-openbsd
+ float_format=m68k
+ #use_collect2=yes
+ use_collect2=yes
+ ;;
m68k-*-sysv3*) # Motorola m68k's running system V.3
xm_file="xm-alloca.h ${xm_file}"
xm_defines=USG
@@ -1956,6 +1973,20 @@
@@ -1956,6 +1973,22 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -41,6 +41,7 @@
+ xm_file="xm-openbsd.h ${xm_file}"
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
+ mips*-*-openbsd*) # MIPS big-endian running OpenBSD
+ tm_file=mips/openbsd-be.h
@ -48,11 +49,12 @@
+ tmake_file=t-libc-ok
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
tm_file="mips/news4.h ${tm_file}"
if [[ x$stabs = xyes ]]; then
@@ -2287,6 +2318,13 @@
@@ -2287,6 +2320,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -62,11 +64,12 @@
+ tmake_file=t-libc-ok
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
pdp11-*-bsd)
tm_file="${tm_file} pdp11/2bsd.h"
;;
@@ -2582,6 +2620,13 @@
@@ -2582,6 +2623,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -76,15 +79,15 @@
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ tmake_file=t-libc-ok
+ use_collect2=yes
+ ;;
sparc-*-bsd*)
tm_file=sparc/bsd.h
;;
@@ -2774,6 +2819,14 @@
# On NetBSD, the headers are already okay, except for math.h.
@@ -2775,6 +2824,15 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
+ float_format=vax
float_format=vax
+ ;;
+ vax-*-openbsd*)
+ tm_file=vax/openbsd.h
@ -92,6 +95,8 @@
+ tmake_file="t-libc-ok vax/t-openbsd"
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
float_format=vax
+ float_format=vax
+ use_collect2=yes
;;
vax-*-ultrix*) # vaxen running ultrix
tm_file="${tm_file} vax/ultrix.h"

View File

@ -1,5 +1,5 @@
--- gcc/configure.in.orig Fri Aug 28 02:19:04 1998
+++ gcc/configure.in Sun Oct 11 03:10:08 1998
+++ gcc/configure.in Mon Oct 12 00:27:08 1998
@@ -868,6 +868,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
@ -10,7 +10,7 @@
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ tmake_file=t-openbsd
+ #use_collect2=yes
+ use_collect2=yes
+ ;;
i[[34567]]86-*-coff*)
tm_file=i386/i386-coff.h
@ -26,12 +26,12 @@
+ fixincludes=Makefile.in
+ tmake_file=t-openbsd
+ float_format=m68k
+ #use_collect2=yes
+ use_collect2=yes
+ ;;
m68k-*-sysv3*) # Motorola m68k's running system V.3
xm_file="xm-alloca.h ${xm_file}"
xm_defines=USG
@@ -1956,6 +1973,20 @@
@@ -1956,6 +1973,22 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -41,6 +41,7 @@
+ xm_file="xm-openbsd.h ${xm_file}"
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
+ mips*-*-openbsd*) # MIPS big-endian running OpenBSD
+ tm_file=mips/openbsd-be.h
@ -48,11 +49,12 @@
+ tmake_file=t-libc-ok
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
tm_file="mips/news4.h ${tm_file}"
if [[ x$stabs = xyes ]]; then
@@ -2287,6 +2318,13 @@
@@ -2287,6 +2320,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -62,11 +64,12 @@
+ tmake_file=t-libc-ok
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ use_collect2=yes
+ ;;
pdp11-*-bsd)
tm_file="${tm_file} pdp11/2bsd.h"
;;
@@ -2582,6 +2620,13 @@
@@ -2582,6 +2623,14 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
@ -76,15 +79,15 @@
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
+ tmake_file=t-libc-ok
+ use_collect2=yes
+ ;;
sparc-*-bsd*)
tm_file=sparc/bsd.h
;;
@@ -2774,6 +2819,14 @@
# On NetBSD, the headers are already okay, except for math.h.
@@ -2775,6 +2824,15 @@
fixincludes=fixinc.wrap
tmake_file=t-netbsd
+ float_format=vax
float_format=vax
+ ;;
+ vax-*-openbsd*)
+ tm_file=vax/openbsd.h
@ -92,6 +95,8 @@
+ tmake_file="t-libc-ok vax/t-openbsd"
+ # On OpenBSD, the headers are already okay.
+ fixincludes=Makefile.in
float_format=vax
+ float_format=vax
+ use_collect2=yes
;;
vax-*-ultrix*) # vaxen running ultrix
tm_file="${tm_file} vax/ultrix.h"