8227171: provide function names in native stack trace on aix with xlc16
authormbaesken
Wed, 03 Jul 2019 13:34:10 +0200
changeset 55584 ef032c55234c
parent 55583 82fae48799e4
child 55585 51ad5ced897a
8227171: provide function names in native stack trace on aix with xlc16 Reviewed-by: stuefe
make/autoconf/flags-cflags.m4
--- a/make/autoconf/flags-cflags.m4	Thu Jul 04 09:12:21 2019 +0200
+++ b/make/autoconf/flags-cflags.m4	Wed Jul 03 13:34:10 2019 +0200
@@ -576,8 +576,9 @@
 
   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
     # Suggested additions: -qsrcmsg to get improved error reporting
-    TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt -qstackprotect"  # add on both CFLAGS
-    TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
+    # set -qtbtable=full for a better traceback table/better stacks in hs_err when xlc16 is used
+    TOOLCHAIN_CFLAGS_JDK="-qtbtable=full -qchars=signed -qfullpath -qsaveopt -qstackprotect"  # add on both CFLAGS
+    TOOLCHAIN_CFLAGS_JVM="-qtbtable=full -qtune=balanced \
         -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
         -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno -qstackprotect"
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then