comparison make/bsd/makefiles/gcc.make @ 12500:0806a46dced5

workaround for bug in Clang 5.0
author Doug Simon <doug.simon@oracle.com>
date Mon, 21 Oct 2013 17:41:27 +0200
parents f2512d89ad0c
children 8ba058ffbc2e
comparison
equal deleted inserted replaced
12495:b7c8b843dc7b 12500:0806a46dced5
311 ifeq ($(USE_CLANG), true) 311 ifeq ($(USE_CLANG), true)
312 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1) 312 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1)
313 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) 313 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
314 OPT_CFLAGS/unsafe.o += -O1 314 OPT_CFLAGS/unsafe.o += -O1
315 endif 315 endif
316 # Clang 5.0
317 ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& $(CC_VER_MINOR) = 0), 1)
318 OPT_CFLAGS/graalCompilerToVM.o += -O1
319 OPT_CFLAGS/unsafe.o += -O1
320 # Specific optimization level plus precompiled headers produces:
321 # error: __OPTIMIZE_SIZE__ predefined macro was enabled in PCH file but is currently disabled
322 USE_PRECOMPILED_HEADER = 0
323 endif
316 else 324 else
317 # 6835796. Problem in GCC 4.3.0 with mulnode.o optimized compilation. 325 # 6835796. Problem in GCC 4.3.0 with mulnode.o optimized compilation.
318 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 3), 1) 326 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 3), 1)
319 OPT_CFLAGS/mulnode.o += $(OPT_CFLAGS/NOOPT) 327 OPT_CFLAGS/mulnode.o += $(OPT_CFLAGS/NOOPT)
320 endif 328 endif