changeset 48987:345f41527dcc

8196488: [aix] TOC overflow for libjvm.so in fastdebug build Reviewed-by: goetz, mbaesken, erikj
author stuefe
date Thu, 08 Feb 2018 15:35:49 +0100
parents 84b4ffbba8b0
children 0006d97556ba e0d3be81da47
files make/autoconf/flags.m4
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/make/autoconf/flags.m4	Mon Feb 12 21:06:06 2018 -0800
+++ b/make/autoconf/flags.m4	Thu Feb 08 15:35:49 2018 +0100
@@ -1030,9 +1030,9 @@
         -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
         -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
     # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows.
-    # Hotspot now overflows its 64K TOC (currently only for slowdebug),
-    # so for slowdebug we build with '-qpic=large -bbigtoc'.
-    if test "x$DEBUG_LEVEL" = xslowdebug; then
+    # Hotspot now overflows its 64K TOC (currently only for debug),
+    # so for debug we build with '-qpic=large -bbigtoc'.
+    if test "x$DEBUG_LEVEL" = xslowdebug || test "x$DEBUG_LEVEL" = xfastdebug; then
       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -qpic=large"
     fi
   elif test "x$OPENJDK_$1_OS" = xbsd; then
@@ -1284,9 +1284,9 @@
     $2LDFLAGS_JDK="${$2LDFLAGS_JDK} $LDFLAGS_XLC"
     $2JVM_LDFLAGS="[$]$2JVM_LDFLAGS $LDFLAGS_XLC"
     # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows.
-    # Hotspot now overflows its 64K TOC (currently only for slowdebug),
-    # so for slowdebug we build with '-qpic=large -bbigtoc'.
-    if test "x$DEBUG_LEVEL" = xslowdebug; then
+    # Hotspot now overflows its 64K TOC (currently only for debug),
+    # so we build with '-qpic=large -bbigtoc'.
+    if test "x$DEBUG_LEVEL" = xslowdebug || test "x$DEBUG_LEVEL" = xfastdebug; then
       $2JVM_LDFLAGS="[$]$2JVM_LDFLAGS -bbigtoc"
     fi
   fi