Source-Changes-HG archive

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

[src/trunk]: src/sys Move Clang-warning flags for ah_regdomain.c into sys/con...



details:   https://anonhg.NetBSD.org/src/rev/65c21c5e7083
branches:  trunk
changeset: 772121:65c21c5e7083
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Dec 19 14:06:16 2011 +0000

description:
Move Clang-warning flags for ah_regdomain.c into sys/conf, they are
platform independent. Use the selective -Wno-* flags instead of
-Wno-error.

diffstat:

 sys/arch/amd64/conf/Makefile.amd64 |  3 +--
 sys/arch/i386/conf/Makefile.i386   |  3 +--
 sys/arch/xen/conf/Makefile.xen     |  4 +---
 sys/conf/Makefile.kern.inc         |  5 ++++-
 4 files changed, 7 insertions(+), 8 deletions(-)

diffs (71 lines):

diff -r 333ea9c7d4e1 -r 65c21c5e7083 sys/arch/amd64/conf/Makefile.amd64
--- a/sys/arch/amd64/conf/Makefile.amd64        Mon Dec 19 14:04:56 2011 +0000
+++ b/sys/arch/amd64/conf/Makefile.amd64        Mon Dec 19 14:06:16 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.amd64,v 1.39 2011/09/14 14:59:29 christos Exp $
+#      $NetBSD: Makefile.amd64,v 1.40 2011/12/19 14:06:16 joerg Exp $
 
 # Makefile for NetBSD
 #
@@ -66,7 +66,6 @@
 AFLAGS.locore.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
 AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
 AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
-CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
 
 ##
 ## (5) link settings
diff -r 333ea9c7d4e1 -r 65c21c5e7083 sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386  Mon Dec 19 14:04:56 2011 +0000
+++ b/sys/arch/i386/conf/Makefile.i386  Mon Dec 19 14:06:16 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.i386,v 1.175 2011/09/14 14:58:08 christos Exp $
+#      $NetBSD: Makefile.i386,v 1.176 2011/12/19 14:06:16 joerg Exp $
 
 # Makefile for NetBSD
 #
@@ -37,7 +37,6 @@
 CFLAGS+=       -mno-sse -mno-sse2 -mno-sse3
 
 AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
-CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
 AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
 AFLAGS.lock_stubs.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
 
diff -r 333ea9c7d4e1 -r 65c21c5e7083 sys/arch/xen/conf/Makefile.xen
--- a/sys/arch/xen/conf/Makefile.xen    Mon Dec 19 14:04:56 2011 +0000
+++ b/sys/arch/xen/conf/Makefile.xen    Mon Dec 19 14:06:16 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.xen,v 1.34 2011/08/17 21:42:16 joerg Exp $
+#      $NetBSD: Makefile.xen,v 1.35 2011/12/19 14:06:17 joerg Exp $
 #      NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp 
 
 # Makefile for NetBSD
@@ -55,8 +55,6 @@
 ##
 KERN_AS=       obj
 
-CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:}
-
 ##
 ## (4) local objects, compile rules, and dependencies
 ##
diff -r 333ea9c7d4e1 -r 65c21c5e7083 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Mon Dec 19 14:04:56 2011 +0000
+++ b/sys/conf/Makefile.kern.inc        Mon Dec 19 14:06:16 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.149 2011/09/25 22:26:33 joerg Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.150 2011/12/19 14:06:17 joerg Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -83,6 +83,9 @@
 CWARNFLAGS.clang+=     -Wno-unknown-pragmas -Wno-conversion \
                        -Wno-self-assign
 
+CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
+    -Wno-shift-count-negative -Wno-shift-count-overflow:}
+
 CFLAGS+=       -ffreestanding -fno-zero-initialized-in-bss
 CFLAGS+=       ${DEBUG} ${COPTS}
 AFLAGS+=       -D_LOCORE -Wa,--fatal-warnings



Home | Main Index | Thread Index | Old Index