# HG changeset patch # User twisti # Date 1444417745 36000 # Node ID 99e4a82f17e8debc5225d1c8834acdac673aa676 # Parent eeae3b9acc916ca6930b75e653bf6c0dc6cd87ba 8138820: JDK Hotspot build fails with Xcode 7.0.1 Reviewed-by: iveresov Contributed-by: stooke@redhat.com diff -r eeae3b9acc91 -r 99e4a82f17e8 make/bsd/makefiles/gcc.make --- a/make/bsd/makefiles/gcc.make Fri Apr 09 12:30:04 2021 +0000 +++ b/make/bsd/makefiles/gcc.make Fri Oct 09 09:09:05 2015 -1000 @@ -313,10 +313,10 @@ # Work around some compiler bugs. ifeq ($(USE_CLANG), true) - ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1) - OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) - OPT_CFLAGS/unsafe.o += -O1 - endif + # Known to fail with clang <= 7.0; + # do no optimize these on later clang until verified + OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) + OPT_CFLAGS/unsafe.o += -O1 else # 6835796. Problem in GCC 4.3.0 with mulnode.o optimized compilation. ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 3), 1)