Skip to content

Commit 70eec90

Browse files
committed
8338303: Linux ppc64le with toolchain clang - detection failure in early JVM startup
Reviewed-by: mdoerr, erikj, ihse
1 parent a1fd5f4 commit 70eec90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -736,6 +736,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
736736
# for all archs except arm and ppc, prevent gcc to omit frame pointer
737737
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer"
738738
fi
739+
if test "x$FLAGS_CPU" = xppc64le; then
740+
# Little endian machine uses ELFv2 ABI.
741+
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
742+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8"
743+
fi
739744
fi
740745
if test "x$OPENJDK_TARGET_OS" = xaix; then
741746
$1_CFLAGS_CPU="-mcpu=pwr8"

0 commit comments

Comments
 (0)