Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/conf Override optimization for files that b...



details:   https://anonhg.NetBSD.org/src/rev/0b7583f3811e
branches:  trunk
changeset: 487508:0b7583f3811e
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Jun 08 21:25:18 2000 +0000

description:
Override optimization for files that break gcc.

diffstat:

 sys/arch/sparc64/conf/Makefile.sparc64 |   5 +++--
 sys/arch/sparc64/conf/files.sparc64    |  16 +++++++++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 5f696dbd3559 -r 0b7583f3811e sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64    Thu Jun 08 21:22:55 2000 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64    Thu Jun 08 21:25:18 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sparc64,v 1.23 2000/05/09 00:56:27 hubertf Exp $
+#      $NetBSD: Makefile.sparc64,v 1.24 2000/06/08 21:25:18 eeh Exp $
 
 # Makefile for NetBSD
 #
@@ -67,7 +67,7 @@
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL ${SVR4}
 CWARNFLAGS=    -Wimplicit -Wunused -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wparentheses -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
 #CWARNFLAGS=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS=                ${DEBUG} ${CWARNFLAGS} -O2 -Wa,-Av9a -mno-fpu
+CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} -O2 -Wa,-Av9a -mno-fpu
 AFLAGS=                -x assembler-with-cpp -Wa,-Av9a -traditional-cpp -D_LOCORE
 LINKFLAGS=     -N -p -Ttext f1000000 -e start >lderr
 STRIPFLAGS=    -g
@@ -95,6 +95,7 @@
 # HOSTED, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
 
 NORMAL_C=      ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+NOOPT_C=       ${CC} ${CPPFLAGS} ${PROF} -c $<
 NORMAL_S=      ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
 
 %OBJS
diff -r 5f696dbd3559 -r 0b7583f3811e sys/arch/sparc64/conf/files.sparc64
--- a/sys/arch/sparc64/conf/files.sparc64       Thu Jun 08 21:22:55 2000 +0000
+++ b/sys/arch/sparc64/conf/files.sparc64       Thu Jun 08 21:25:18 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.sparc64,v 1.29 2000/05/19 05:26:17 eeh Exp $
+#      $NetBSD: files.sparc64,v 1.30 2000/06/08 21:25:18 eeh Exp $
 
 # @(#)files.sparc64    8.1 (Berkeley) 7/19/93
 # sparc64-specific configuration info
@@ -8,6 +8,20 @@
 
 maxusers 2 8 1024
 
+#
+# XXXXXXXXXXX
+#
+# These files must be compiled w/no omtimization in 64-bit mode
+#
+
+file net/if_ppp.c      ppp     needs-count     compile-with "${NOOPT_C}"
+file net/if_loop.c     loop    needs-count     compile-with "${NOOPT_C}"
+file net/if_sl.c       sl      needs-count     compile-with "${NOOPT_C}"
+
+#
+# XXXXXXXXXXX
+#
+
 define mainbus {}
 device mainbus: pcibus, mainbus
 attach mainbus at root



Home | Main Index | Thread Index | Old Index