8228426: xlc: switch to clang-style warning disabling
authormbaesken
Fri, 19 Jul 2019 11:09:41 +0200
changeset 57481 aaa83519e723
parent 57480 321bddd9afdf
child 57499 0e2453f75881
8228426: xlc: switch to clang-style warning disabling Reviewed-by: clanger, mdoerr
make/autoconf/flags-cflags.m4
make/hotspot/lib/CompileJvm.gmk
make/lib/Awt2dLibraries.gmk
--- a/make/autoconf/flags-cflags.m4	Mon Jul 22 10:15:46 2019 +0200
+++ b/make/autoconf/flags-cflags.m4	Fri Jul 19 11:09:41 2019 +0200
@@ -229,7 +229,7 @@
       ;;
 
     xlc)
-      DISABLE_WARNING_PREFIX="-qsuppress="
+      DISABLE_WARNING_PREFIX="-Wno-"
       CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w"
 
       # Possibly a better subset than "all" is "lan:trx:ret:zea:cmp:ret"
--- a/make/hotspot/lib/CompileJvm.gmk	Mon Jul 22 10:15:46 2019 +0200
+++ b/make/hotspot/lib/CompileJvm.gmk	Fri Jul 19 11:09:41 2019 +0200
@@ -97,8 +97,7 @@
     unknownpragma doubunder w_enumnotused w_toomanyenumnotused \
     wvarhidenmem wunreachable wnoretvalue notemsource
 
-DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 1540-1088 \
-    1500-010
+DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value
 
 DISABLED_WARNINGS_microsoft :=
 
--- a/make/lib/Awt2dLibraries.gmk	Mon Jul 22 10:15:46 2019 +0200
+++ b/make/lib/Awt2dLibraries.gmk	Fri Jul 19 11:09:41 2019 +0200
@@ -471,7 +471,6 @@
           $(LIBAWT_HEADLESS_CFLAGS), \
       EXTRA_HEADER_DIRS := $(LIBAWT_HEADLESS_EXTRA_HEADER_DIRS), \
       DISABLED_WARNINGS_gcc := unused-function, \
-      DISABLED_WARNINGS_xlc := 1506-356, \
       DISABLED_WARNINGS_solstudio := E_EMPTY_TRANSLATION_UNIT, \
       LDFLAGS := $(LDFLAGS_JDKLIB) \
           $(call SET_SHARED_LIBRARY_ORIGIN), \
@@ -481,10 +480,6 @@
       LIBS_solaris := $(LIBM) $(LIBDL) $(LIBCXX), \
   ))
 
-  # AIX warning explanation:
-  # 1506-356 : (W) Compilation unit is empty.
-  #            This happens during the headless build
-
   $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
 
   TARGETS += $(BUILD_LIBAWT_HEADLESS)