Mercurial > hg > graal-jvmci-8
changeset 24220:47f93b86e0f1
Reenable unsafe.cpp compiler workaround with clang
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 15 Aug 2017 19:03:09 -0700 |
parents | f55fe8d6c18c |
children | f32391b837d5 |
files | make/bsd/makefiles/gcc.make |
diffstat | 1 files changed, 2 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make Tue Aug 15 00:16:52 2017 +0200 +++ b/make/bsd/makefiles/gcc.make Tue Aug 15 19:03:09 2017 -0700 @@ -315,21 +315,8 @@ # Work around some compiler bugs. ifeq ($(USE_CLANG), true) - # Clang 4.2 - 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 - # Clang 5.0 - ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& \( $(CC_VER_MINOR) = 0 \| $(CC_VER_MINOR) = 1 \) ), 1) - OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) - OPT_CFLAGS/unsafe.o += -O1 - endif - # Clang 6.x - ifeq ($(shell expr $(CC_VER_MAJOR) = 6), 1) - OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT) - OPT_CFLAGS/unsafe.o += -O1 - endif + 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)