Do not always disable doubunder. ihse-cflags-rewrite-branch
authorihse
Sat, 03 Mar 2018 09:14:01 +0100
branchihse-cflags-rewrite-branch
changeset 56236 97746cb303aa
parent 56232 63294a64cc2e
child 56237 9ccbd02e0c2c
Do not always disable doubunder.
make/autoconf/flags-cflags.m4
make/hotspot/lib/CompileDtracePostJvm.gmk
make/hotspot/lib/CompileGtest.gmk
make/hotspot/lib/CompileJvm.gmk
make/lib/Lib-jdk.hotspot.agent.gmk
--- a/make/autoconf/flags-cflags.m4	Sat Mar 03 08:33:51 2018 +0100
+++ b/make/autoconf/flags-cflags.m4	Sat Mar 03 09:14:01 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 doubunder notused wemptydecl wunreachable"
+      DISABLED_WARNINGS_CXX="inllargeuse notused wemptydecl wunreachable"
       ;;
     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 08:33:51 2018 +0100
+++ b/make/hotspot/lib/CompileDtracePostJvm.gmk	Sat Mar 03 09:14:01 2018 +0100
@@ -53,7 +53,7 @@
         LDFLAGS := -m64, \
         CFLAGS := -m64 $(JVM_CFLAGS), \
         DISABLED_WARNINGS_solstudio := hidef nokeyworddefine unknownpragma \
-            w_novirtualdescr, \
+            w_novirtualdescr doubunder, \
         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 08:33:51 2018 +0100
+++ b/make/hotspot/lib/CompileGtest.gmk	Sat Mar 03 09:14:01 2018 +0100
@@ -88,7 +88,8 @@
         tautological-undefined-compare $(BUILD_LIBJVM_DISABLED_WARNINGS_clang), \
     DISABLED_WARNINGS_solstudio := hidef inlafteruse inllargeint \
         nokeyworddefine notemsource unknownpragma w_enumnotused \
-        wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem, \
+        wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
+        doubunder, \
     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 08:33:51 2018 +0100
+++ b/make/hotspot/lib/CompileJvm.gmk	Sat Mar 03 09:14:01 2018 +0100
@@ -227,7 +227,8 @@
     DISABLED_WARNINGS_clang := tautological-compare, \
     DISABLED_WARNINGS_solstudio := hidef inlafteruse inllargeint \
         nokeyworddefine notemsource unknownpragma w_enumnotused \
-        wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem, \
+        wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
+        doubunder, \
     DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 \
         1540-1088 1500-010, \
     ASFLAGS := $(JVM_ASFLAGS), \
--- a/make/lib/Lib-jdk.hotspot.agent.gmk	Sat Mar 03 08:33:51 2018 +0100
+++ b/make/lib/Lib-jdk.hotspot.agent.gmk	Sat Mar 03 09:14:01 2018 +0100
@@ -103,7 +103,7 @@
     OPTIMIZATION := NONE, \
     DISABLED_WARNINGS_microsoft := 4267, \
     DISABLED_WARNINGS_gcc := sign-compare, \
-    DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma, \
+    DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma doubunder, \
     OUTPUT_DIR := $(call FindLibDirForModule, $(MODULE)), \
     SRC := $(SA_SRC), \
     EXCLUDE_FILES := test.c saproc_audit.cpp $(SA_EXCLUDE_FILES), \