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 Realy disable optimization for 32bit k...



details:   https://anonhg.NetBSD.org/src/rev/8f00246a2983
branches:  trunk
changeset: 559683:8f00246a2983
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 22 00:43:37 2004 +0000

description:
Realy disable optimization for 32bit kernels when compiling uvm_bio.c.

diffstat:

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

diffs (42 lines):

diff -r bfb10cef9cbc -r 8f00246a2983 sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64    Sun Mar 21 23:41:21 2004 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64    Mon Mar 22 00:43:37 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sparc64,v 1.53 2004/03/21 13:12:30 martin Exp $
+#      $NetBSD: Makefile.sparc64,v 1.54 2004/03/22 00:43:37 martin Exp $
 
 #=========================================================================
 #
@@ -57,6 +57,7 @@
 # 64-bit kernels
 CPPFLAGS+=     -D_LP64 -Wa,-Av9a
 AFLAGS+=       -Wa,-Av9a
+CC_NOOPT=      ${NORMAL_C}
 .if defined(PROF)
 # Profiling is only supported in the medium low memory model.
 CFLAGS+=       -mcmodel=medlow
@@ -71,7 +72,7 @@
 # XXX
 # The sparc gcc version 3.3.3 (NetBSD nb1 20040301) does not compile this
 # file properly with higher optimizations
-COPTS.uvm_bio.c        = -O0
+CC_NOOPT=      ${NORMAL_C:C/-O./-O0/}
 .endif
 CFLAGS+=       -mno-fpu
 AFLAGS+=       -x assembler-with-cpp -traditional-cpp
diff -r bfb10cef9cbc -r 8f00246a2983 sys/arch/sparc64/conf/files.sparc64
--- a/sys/arch/sparc64/conf/files.sparc64       Sun Mar 21 23:41:21 2004 +0000
+++ b/sys/arch/sparc64/conf/files.sparc64       Mon Mar 22 00:43:37 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.sparc64,v 1.92 2004/03/21 14:25:51 pk Exp $
+#      $NetBSD: files.sparc64,v 1.93 2004/03/22 00:43:37 martin Exp $
 
 # @(#)files.sparc64    8.1 (Berkeley) 7/19/93
 # sparc64-specific configuration info
@@ -246,3 +246,6 @@
 file   dev/md_root.c                   memory_disk_hooks
 
 include "arch/sparc64/conf/majors.sparc64"
+
+# special compiler settings (no optimization if 32bit kernel)
+file   uvm/uvm_bio.c compile-with "${CC_NOOPT}"



Home | Main Index | Thread Index | Old Index