Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/conf Disable optimization for pmap.c to preven...



details:   https://anonhg.NetBSD.org/src/rev/56e92585f47b
branches:  trunk
changeset: 841203:56e92585f47b
user:      scole <scole%NetBSD.org@localhost>
date:      Sat May 04 02:06:59 2019 +0000

description:
Disable optimization for pmap.c to prevent RAW assembler dependency
warnings.

If port ever becomes more stable, should revert this and figure out
exactly why only pmap seems to have this issue in the kernel.

diffstat:

 sys/arch/ia64/conf/Makefile.ia64 |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 4a8f39f29ccd -r 56e92585f47b sys/arch/ia64/conf/Makefile.ia64
--- a/sys/arch/ia64/conf/Makefile.ia64  Sat May 04 00:45:18 2019 +0000
+++ b/sys/arch/ia64/conf/Makefile.ia64  Sat May 04 02:06:59 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.ia64,v 1.6 2018/09/22 12:24:02 rin Exp $
+#      $NetBSD: Makefile.ia64,v 1.7 2019/05/04 02:06:59 scole Exp $
 
 # Makefile for NetBSD
 #
@@ -34,6 +34,11 @@
 CPPFLAGS+=     -mconstant-gp -Dia64
 AFLAGS+=       -x assembler-with-cpp -Wa,-x 
 
+# XXX don't optimize pmap.c to get rid of assembler warnings like:
+#   Warning: Use of 'st8' may violate RAW dependency 'RR#' (data)
+# Happening with gcc7 and iirc several years worth of prior gcc versions
+COPTS.pmap.c+= -O0
+
 ##
 ## (3) libkern and compat
 ##



Home | Main Index | Thread Index | Old Index