Push wunreachable on solstudio down to where it belongs. ihse-cflags-rewrite-branch
authorihse
Mon, 05 Mar 2018 21:37:20 +0100
branchihse-cflags-rewrite-branch
changeset 56237 9ccbd02e0c2c
parent 56236 97746cb303aa
child 56238 c4bda870c926
Push wunreachable on solstudio down to where it belongs.
make/autoconf/flags-cflags.m4
make/hotspot/lib/CompileDtracePostJvm.gmk
make/hotspot/lib/CompileGtest.gmk
make/hotspot/lib/CompileJvm.gmk
make/launcher/Launcher-jdk.pack.gmk
make/lib/Lib-jdk.pack.gmk
--- a/make/autoconf/flags-cflags.m4	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/autoconf/flags-cflags.m4	Mon Mar 05 21:37:20 2018 +0100
@@ -194,7 +194,7 @@
       WARNINGS_ENABLE_ALL_CXXFLAGS="+w +w2"
 
       DISABLED_WARNINGS_C="E_OLD_STYLE_FUNC_DECL E_OLD_STYLE_FUNC_DEF E_SEMANTICS_OF_OP_CHG_IN_ANSI_C E_NO_REPLACEMENT_IN_STRING"
-      DISABLED_WARNINGS_CXX="inllargeuse notused wemptydecl wunreachable"
+      DISABLED_WARNINGS_CXX="inllargeuse notused wemptydecl"
       ;;
     gcc)
       # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error
--- a/make/hotspot/lib/CompileDtracePostJvm.gmk	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/hotspot/lib/CompileDtracePostJvm.gmk	Mon Mar 05 21:37:20 2018 +0100
@@ -53,7 +53,7 @@
         LDFLAGS := -m64, \
         CFLAGS := -m64 $(JVM_CFLAGS), \
         DISABLED_WARNINGS_solstudio := hidef nokeyworddefine unknownpragma \
-            w_novirtualdescr doubunder, \
+            w_novirtualdescr doubunder wunreachable,, \
         OBJECT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/dtrace-gen-offsets/objs, \
         OUTPUT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/dtrace-gen-offsets, \
     ))
--- a/make/hotspot/lib/CompileGtest.gmk	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/hotspot/lib/CompileGtest.gmk	Mon Mar 05 21:37:20 2018 +0100
@@ -89,7 +89,7 @@
     DISABLED_WARNINGS_solstudio := hidef inlafteruse inllargeint \
         nokeyworddefine notemsource unknownpragma w_enumnotused \
         wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
-        doubunder, \
+        doubunder wunreachable, \
     DISABLED_WARNINGS_CXX_microsoft := 4996, \
     LDFLAGS := $(JVM_LDFLAGS), \
     LDFLAGS_solaris := -library=stlport4 $(call SET_SHARED_LIBRARY_ORIGIN), \
--- a/make/hotspot/lib/CompileJvm.gmk	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/hotspot/lib/CompileJvm.gmk	Mon Mar 05 21:37:20 2018 +0100
@@ -228,7 +228,7 @@
     DISABLED_WARNINGS_solstudio := hidef inlafteruse inllargeint \
         nokeyworddefine notemsource unknownpragma w_enumnotused \
         wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
-        doubunder, \
+        doubunder wunreachable, \
     DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 \
         1540-1088 1500-010, \
     ASFLAGS := $(JVM_ASFLAGS), \
--- a/make/launcher/Launcher-jdk.pack.gmk	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/launcher/Launcher-jdk.pack.gmk	Mon Mar 05 21:37:20 2018 +0100
@@ -85,6 +85,7 @@
     CFLAGS_solaris := -KPIC, \
     CFLAGS_macosx := -fPIC, \
     DISABLED_WARNINGS_gcc := unused-result implicit-fallthrough, \
+    DISABLED_WARNINGS_solstudio := wunreachable, \
     MAPFILE := $(UNPACK_MAPFILE),\
     LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
         $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
--- a/make/lib/Lib-jdk.pack.gmk	Sat Mar 03 09:14:01 2018 +0100
+++ b/make/lib/Lib-jdk.pack.gmk	Mon Mar 05 21:37:20 2018 +0100
@@ -41,6 +41,7 @@
         $(LIBJAVA_HEADER_FLAGS), \
     CFLAGS_release := -DPRODUCT, \
     DISABLED_WARNINGS_gcc := implicit-fallthrough, \
+    DISABLED_WARNINGS_solstudio := wunreachable, \
     MAPFILE := $(TOPDIR)/make/mapfiles/libunpack/mapfile-vers, \
     LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
         $(call SET_SHARED_LIBRARY_ORIGIN), \