Mercurial > hg > graal-jvmci-8
comparison make/bsd/makefiles/gcc.make @ 12143:dfc126b2f659
8022407: sun/misc/CopyMemory.java fails with SIGSEGV in Unsafe_SetByte+0x35
Summary: lower optimization level for unsafe.cpp due to MacOS Xcode 4.6.2 compiler optimization issue.
Reviewed-by: coleenp, twisti, dholmes
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Thu, 29 Aug 2013 13:44:07 -0400 |
parents | e16282db4946 |
children | ca0501b58953 |
comparison
equal
deleted
inserted
replaced
12142:76482cbba706 | 12143:dfc126b2f659 |
---|---|
137 # extra '-O0' PCH file for the opt build and use it here, but it's probably | 137 # extra '-O0' PCH file for the opt build and use it here, but it's probably |
138 # not worth the effort as long as only two files need this special handling. | 138 # not worth the effort as long as only two files need this special handling. |
139 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH) | 139 PCH_FLAG/loopTransform.o = $(PCH_FLAG/NO_PCH) |
140 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH) | 140 PCH_FLAG/sharedRuntimeTrig.o = $(PCH_FLAG/NO_PCH) |
141 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH) | 141 PCH_FLAG/sharedRuntimeTrans.o = $(PCH_FLAG/NO_PCH) |
142 PCH_FLAG/unsafe.o = $(PCH_FLAG/NO_PCH) | |
142 | 143 |
143 endif | 144 endif |
144 else # ($(USE_CLANG), true) | 145 else # ($(USE_CLANG), true) |
145 # check for precompiled headers support | 146 # check for precompiled headers support |
146 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" | 147 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" |
304 | 305 |
305 # Work around some compiler bugs. | 306 # Work around some compiler bugs. |
306 ifeq ($(USE_CLANG), true) | 307 ifeq ($(USE_CLANG), true) |
307 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1) | 308 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1) |
308 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) | 309 OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) |
310 OPT_CFLAGS/unsafe.o += -01 | |
309 endif | 311 endif |
310 else | 312 else |
311 # 6835796. Problem in GCC 4.3.0 with mulnode.o optimized compilation. | 313 # 6835796. Problem in GCC 4.3.0 with mulnode.o optimized compilation. |
312 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 3), 1) | 314 ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 3), 1) |
313 OPT_CFLAGS/mulnode.o += $(OPT_CFLAGS/NOOPT) | 315 OPT_CFLAGS/mulnode.o += $(OPT_CFLAGS/NOOPT) |