Skip to content

Commit 0662e39

Browse files
committed
8350267: Set mtune and mcpu settings in JDK native lib compilation on Linux ppc64(le)
Reviewed-by: mdoerr, asteiner, erikj
1 parent c5c91a8 commit 0662e39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,13 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
715715
if test "x$FLAGS_CPU" = xppc64; then
716716
# -mminimal-toc fixes `relocation truncated to fit' error for gcc 4.1.
717717
# Use ppc64 instructions, but schedule for power5
718-
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc -mcpu=powerpc64 -mtune=power5"
718+
$1_CFLAGS_CPU="-mcpu=powerpc64 -mtune=power5"
719+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc"
719720
elif test "x$FLAGS_CPU" = xppc64le; then
720721
# Little endian machine uses ELFv2 ABI.
721722
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
722-
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10"
723+
$1_CFLAGS_CPU="-mcpu=power8 -mtune=power10"
724+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2"
723725
fi
724726
elif test "x$FLAGS_CPU" = xs390x; then
725727
$1_CFLAGS_CPU="-mbackchain -march=z10"

0 commit comments

Comments
 (0)