# HG changeset patch # User Doug Simon # Date 1382370087 -7200 # Node ID 0806a46dced5690fa019fa9fb05a3c984f1e976a # Parent b7c8b843dc7b44ada5ea80bbe873190c0dcbb464 workaround for bug in Clang 5.0 diff -r b7c8b843dc7b -r 0806a46dced5 make/bsd/makefiles/gcc.make --- a/make/bsd/makefiles/gcc.make Sun Oct 20 03:50:51 2013 +0200 +++ b/make/bsd/makefiles/gcc.make Mon Oct 21 17:41:27 2013 +0200 @@ -313,6 +313,14 @@ OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) OPT_CFLAGS/unsafe.o += -O1 endif + # Clang 5.0 + ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& $(CC_VER_MINOR) = 0), 1) + OPT_CFLAGS/graalCompilerToVM.o += -O1 + OPT_CFLAGS/unsafe.o += -O1 + # Specific optimization level plus precompiled headers produces: + # error: __OPTIMIZE_SIZE__ predefined macro was enabled in PCH file but is currently disabled + USE_PRECOMPILED_HEADER = 0 + endif 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)