Source-Changes-HG archive

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

[src/trunk]: src/sys/arch HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 ...



details:   https://anonhg.NetBSD.org/src/rev/69dd767393b0
branches:  trunk
changeset: 485938:69dd767393b0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 09 00:32:19 2000 +0000

description:
HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well.  Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.

diffstat:

 sys/arch/alpha/conf/Makefile.alpha       |   9 ++++++---
 sys/arch/amiga/conf/Makefile.amiga       |   9 ++++++---
 sys/arch/arc/conf/Makefile.arc           |  13 +++++++------
 sys/arch/arm32/conf/Makefile.arm32       |   9 ++++++---
 sys/arch/atari/conf/Makefile.atari       |   9 ++++++---
 sys/arch/bebox/conf/Makefile.bebox       |   9 ++++++---
 sys/arch/cobalt/conf/Makefile.cobalt     |   9 ++++++---
 sys/arch/evbsh3/conf/Makefile.evbsh3     |   9 ++++++---
 sys/arch/evbsh3/conf/Makefile.evbsh3.el  |   9 ++++++---
 sys/arch/hp300/conf/Makefile.hp300       |   9 ++++++---
 sys/arch/hpcmips/conf/Makefile.hpcmips   |   9 ++++++---
 sys/arch/i386/conf/Makefile.i386         |   9 ++++++---
 sys/arch/luna68k/conf/Makefile.luna68k   |  12 ++++++++----
 sys/arch/mac68k/conf/Makefile.mac68k     |   9 ++++++---
 sys/arch/macppc/conf/Makefile.macppc     |   9 ++++++---
 sys/arch/mmeye/conf/Makefile.mmeye       |   9 ++++++---
 sys/arch/mvme68k/conf/Makefile.mvme68k   |   9 ++++++---
 sys/arch/news68k/conf/Makefile.news68k   |   9 ++++++---
 sys/arch/newsmips/conf/Makefile.newsmips |   9 ++++++---
 sys/arch/next68k/conf/Makefile.next68k   |   9 ++++++---
 sys/arch/ofppc/conf/Makefile.ofppc       |   9 ++++++---
 sys/arch/pc532/conf/Makefile.pc532       |  13 ++++++++-----
 sys/arch/pmax/conf/Makefile.pmax         |   9 ++++++---
 sys/arch/prep/conf/Makefile.prep         |   9 ++++++---
 sys/arch/sh3/conf/Makefile.sh3           |   9 ++++++---
 sys/arch/sparc/conf/Makefile.sparc       |   9 ++++++---
 sys/arch/sun3/conf/Makefile.sun3         |   9 ++++++---
 sys/arch/vax/conf/Makefile.vax           |  11 +++++++----
 sys/arch/x68k/conf/Makefile.x68k         |   9 ++++++---
 29 files changed, 180 insertions(+), 94 deletions(-)

diffs (truncated from 800 to 300 lines):

diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/alpha/conf/Makefile.alpha
--- a/sys/arch/alpha/conf/Makefile.alpha        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/alpha/conf/Makefile.alpha        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.alpha,v 1.56 2000/02/01 05:25:24 tsutsui Exp $
+# $NetBSD: Makefile.alpha,v 1.57 2000/05/09 00:32:19 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -40,13 +40,16 @@
 .endif
 ALPHA= $S/arch/alpha
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dalpha
 COPTS?=                -O2
 CWARNFLAGS?=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-fp-regs
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/amiga/conf/Makefile.amiga
--- a/sys/arch/amiga/conf/Makefile.amiga        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/amiga/conf/Makefile.amiga        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.amiga,v 1.87 2000/02/01 05:25:26 tsutsui Exp $
+#      $NetBSD: Makefile.amiga,v 1.88 2000/05/09 00:32:20 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -42,12 +42,15 @@
 .endif
 AMIGA= $S/arch/amiga
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Damiga -DFPCOPROC
 CWARNFLAGS?=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 .if empty(IDENT:M-DM68060)
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/arc/conf/Makefile.arc
--- a/sys/arch/arc/conf/Makefile.arc    Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/arc/conf/Makefile.arc    Tue May 09 00:32:19 2000 +0000
@@ -1,5 +1,4 @@
-#      $NetBSD: Makefile.arc,v 1.35 2000/02/25 13:20:43 soda Exp $
-#      $OpenBSD: Makefile.arc,v 1.13 1999/08/15 20:43:57 niklas Exp $
+#      $NetBSD: Makefile.arc,v 1.36 2000/05/09 00:32:20 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -50,13 +49,15 @@
 ARC=   $S/arch/arc
 MIPS=  $S/arch/mips
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darc
-# XXX: -Werror
-CWARNFLAGS?=   -Wall -Wmissing-prototypes -Wstrict-prototypes \
+CWARNFLAGS?=   -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 GP?=           -G 0 # -G 30 # XXX: check this
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/arm32/conf/Makefile.arm32
--- a/sys/arch/arm32/conf/Makefile.arm32        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/arm32/conf/Makefile.arm32        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.arm32,v 1.51 2000/02/01 05:25:27 tsutsui Exp $
+#      $NetBSD: Makefile.arm32,v 1.52 2000/05/09 00:32:21 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -42,11 +42,14 @@
 .endif
 ARM32= $S/arch/arm32
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darm32
 CWARNFLAGS?=   -Werror -Wall -Wcomment -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS}
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/atari/conf/Makefile.atari
--- a/sys/arch/atari/conf/Makefile.atari        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/atari/conf/Makefile.atari        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.atari,v 1.58 2000/02/01 05:25:28 tsutsui Exp $
+#      $NetBSD: Makefile.atari,v 1.59 2000/05/09 00:32:21 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -42,12 +42,15 @@
 .endif
 ATARI= $S/arch/atari
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Datari
 CWARNFLAGS?=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=    -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 .if empty(IDENT:M-DM68060)
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/bebox/conf/Makefile.bebox
--- a/sys/arch/bebox/conf/Makefile.bebox        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/bebox/conf/Makefile.bebox        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.bebox,v 1.17 2000/02/01 05:25:29 tsutsui Exp $
+#      $NetBSD: Makefile.bebox,v 1.18 2000/05/09 00:32:21 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -45,11 +45,14 @@
 BEBOX= $S/arch/bebox
 POWERPC= $S/arch/powerpc
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dbebox
 CWARNFLAGS?=   -Werror -Wreturn-type -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float 
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/cobalt/conf/Makefile.cobalt
--- a/sys/arch/cobalt/conf/Makefile.cobalt      Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/cobalt/conf/Makefile.cobalt      Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.cobalt,v 1.2 2000/03/30 20:08:37 soren Exp $
+#      $NetBSD: Makefile.cobalt,v 1.3 2000/05/09 00:32:21 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -46,12 +46,15 @@
 COBALT= $S/arch/cobalt
 MIPS=  $S/arch/mips
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dcobalt
 CWARNFLAGS?=   -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=    -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 GP?=           -G 0
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/evbsh3/conf/Makefile.evbsh3
--- a/sys/arch/evbsh3/conf/Makefile.evbsh3      Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/evbsh3/conf/Makefile.evbsh3      Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.evbsh3,v 1.5 2000/02/01 05:25:29 tsutsui Exp $
+#      $NetBSD: Makefile.evbsh3,v 1.6 2000/05/09 00:32:22 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -44,13 +44,16 @@
 SH3=   $S/arch/sh3
 EVBSH3=        $S/arch/evbsh3
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
                -Dsh3
 CWARNFLAGS=    -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
 CWARNFLAGS+=   -Wpointer-arith -Wno-parentheses
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=    -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS}
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/evbsh3/conf/Makefile.evbsh3.el
--- a/sys/arch/evbsh3/conf/Makefile.evbsh3.el   Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/evbsh3/conf/Makefile.evbsh3.el   Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.evbsh3.el,v 1.4 2000/02/01 05:25:30 tsutsui Exp $
+#      $NetBSD: Makefile.evbsh3.el,v 1.5 2000/05/09 00:32:22 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -43,13 +43,16 @@
 SH3=   $S/arch/sh3
 EVBSH3=        $S/arch/evbsh3
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
                -Dsh3
 CWARNFLAGS=    -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
 CWARNFLAGS+=   -Wpointer-arith -Wno-parentheses
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS}
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/hp300/conf/Makefile.hp300
--- a/sys/arch/hp300/conf/Makefile.hp300        Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/hp300/conf/Makefile.hp300        Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.hp300,v 1.74 2000/02/01 05:25:30 tsutsui Exp $
+#      $NetBSD: Makefile.hp300,v 1.75 2000/05/09 00:32:22 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -42,12 +42,15 @@
 .endif
 HP300= $S/arch/hp300
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dhp300
 CWARNFLAGS?=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
                -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float
diff -r 2978e5e4dab4 -r 69dd767393b0 sys/arch/hpcmips/conf/Makefile.hpcmips
--- a/sys/arch/hpcmips/conf/Makefile.hpcmips    Tue May 09 00:28:22 2000 +0000
+++ b/sys/arch/hpcmips/conf/Makefile.hpcmips    Tue May 09 00:32:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.hpcmips,v 1.15 2000/05/08 21:58:40 uch Exp $
+#      $NetBSD: Makefile.hpcmips,v 1.16 2000/05/09 00:32:22 thorpej Exp $
 
 # Makefile for NetBSD
 #
@@ -48,12 +48,15 @@
 HPCMIPS=       $S/arch/hpcmips
 MIPS=  $S/arch/mips
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
+HAVE_EGCS!=    ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
 INCLUDES=      -I. -I$S/arch -I$S -nostdinc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dhpcmips -D__hpcmips__
 CWARNFLAGS?=   -Werror -Wall  -Wstrict-prototypes -Wmissing-prototypes \
                -Wno-uninitialized -Wpointer-arith
-.if (${HAVE_GCC28} != "")
+# XXX Delete -Wuninitialized for now, since the compiler doesn't
+# XXX always get it right.  --thorpej 
+CWARNFLAGS+=   -Wno-uninitialized
+.if (${HAVE_EGCS} != "")
 CWARNFLAGS+=   -Wno-main
 .endif



Home | Main Index | Thread Index | Old Index