Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions common/autoconf/toolchain.m4
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,17 @@ AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
# This is later checked when setting flags.
fi

if test "x$TOOLCHAIN_TYPE" = xgcc; then
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xaarch64" ; then
AC_MSG_CHECKING([for broken aarch64 gcc 4.x])
COMPILER_VERSION_NUMBER_MAJOR=`$ECHO "$COMPILER_VERSION_NUMBER" | $SED "s/@<:@^0-9@:>@.*//"`
if test $COMPILER_VERSION_NUMBER_MAJOR -lt 5; then
AC_MSG_ERROR([GCC < 5 is known to be compiling incorrectly on aarch64. See JDK-8360869. Gcc $COMPILER_VERSION_NUMBER_MAJOR.x detected])
fi
AC_MSG_RESULT([ok ($COMPILER_VERSION_NUMBER_MAJOR.x)])
fi
fi

# Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed
# in executable.'
USING_BROKEN_SUSE_LD=no
Expand Down