From 3aa7086dd5695b7d90c370407de403901dacf154 Mon Sep 17 00:00:00 2001 From: simonis Date: Fri, 19 Dec 2014 18:33:55 +0100 Subject: [PATCH] 8067923: AIX: link libjvm.so with -bernotok to detect missing symbols at build time and suppress warning 1540-1639 Reviewed-by: goetz --- make/aix/makefiles/ppc64.make | 4 +++- make/aix/makefiles/xlc.make | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/make/aix/makefiles/ppc64.make b/make/aix/makefiles/ppc64.make index 079d07647..2636a4b97 100644 --- a/make/aix/makefiles/ppc64.make +++ b/make/aix/makefiles/ppc64.make @@ -46,7 +46,9 @@ CFLAGS += -qsuppress=1540-0198 # - 1540-1090 (I) The destructor of "..." might not be called. # - 1500-010: (W) WARNING in ...: Infinite loop. Program may not stop. # There are several infinite loops in the vm, suppress. -CFLAGS += -qsuppress=1540-1090 -qsuppress=1500-010 +# - 1540-1639 (I) The behavior of long type bit fields has changed ... +# ... long type bit fields now default to long, not int. +CFLAGS += -qsuppress=1540-1090 -qsuppress=1500-010 -qsuppress=1540-1639 # Suppress # - 540-1088 (W) The exception specification is being ignored. diff --git a/make/aix/makefiles/xlc.make b/make/aix/makefiles/xlc.make index fa2ceaf25..17a71b601 100644 --- a/make/aix/makefiles/xlc.make +++ b/make/aix/makefiles/xlc.make @@ -130,7 +130,7 @@ STATIC_STDCXX = -Wl,-lC_r # MAPFLAG = -Xlinker --version-script=FILENAME # Build shared library -SHARED_FLAG = -q64 -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath +SHARED_FLAG = -q64 -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath -bernotok #------------------------------------------------------------------------ # Debug flags -- GitLab