File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -846,6 +846,17 @@ AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
846846 # This is later checked when setting flags.
847847 fi
848848
849+ if test "x$TOOLCHAIN_TYPE" = xgcc; then
850+ if test "x$OPENJDK_TARGET_CPU_ARCH" = "xaarch64" ; then
851+ AC_MSG_CHECKING ( [ for broken aarch64 gcc 4.x] )
852+ COMPILER_VERSION_NUMBER_MAJOR=`$ECHO "$COMPILER_VERSION_NUMBER" | $SED "s/@<:@ ^0-9@:>@ .*//"`
853+ if test $COMPILER_VERSION_NUMBER_MAJOR -lt 5; then
854+ AC_MSG_ERROR ( [ GCC < 5 is known to be compiling incorrectly on aarch64. See JDK-8360869. Gcc $COMPILER_VERSION_NUMBER_MAJOR.x detected] )
855+ fi
856+ AC_MSG_RESULT ( [ ok ($COMPILER_VERSION_NUMBER_MAJOR.x)] )
857+ fi
858+ fi
859+
849860 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed
850861 # in executable.'
851862 USING_BROKEN_SUSE_LD=no
You can’t perform that action at this time.
0 commit comments