Lines 1-6
Link Here
|
1 |
--- make/autoconf/flags-cflags.m4.orig 2020-01-08 09:12:31 UTC |
1 |
--- make/autoconf/flags-cflags.m4.orig 2020-01-08 09:12:31 UTC |
2 |
+++ make/autoconf/flags-cflags.m4 |
2 |
+++ make/autoconf/flags-cflags.m4 |
3 |
@@ -770,6 +770,10 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP], |
3 |
@@ -770,6 +770,14 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP], |
4 |
# for all archs except arm and ppc, prevent gcc to omit frame pointer |
4 |
# for all archs except arm and ppc, prevent gcc to omit frame pointer |
5 |
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer" |
5 |
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer" |
6 |
fi |
6 |
fi |
Lines 7-12
Link Here
|
7 |
+ elif test "x$OPENJDK_TARGET_OS_ENV" = xbsd.freebsd; then |
7 |
+ elif test "x$OPENJDK_TARGET_OS_ENV" = xbsd.freebsd; then |
8 |
+ if test "x$FLAGS_CPU" = xppc64; then |
8 |
+ if test "x$FLAGS_CPU" = xppc64; then |
9 |
+ $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=powerpc64 -mtune=power5" |
9 |
+ $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=powerpc64 -mtune=power5" |
|
|
10 |
+ elif test "x$FLAGS_CPU" = xppc64le; then |
11 |
+ # Little endian machine uses ELFv2 ABI. |
12 |
+ # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. |
13 |
+ $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8" |
10 |
+ fi |
14 |
+ fi |
11 |
fi |
15 |
fi |
12 |
|
16 |
|