-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
-
b31
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083354 | emb-9 | Staffan Larsen | P4 | Resolved | Fixed | b31 |
JDK-8237378 | 8u251 | Unassigned | P4 | Resolved | Fixed | b02 |
JDK-8239628 | emb-8u251 | Unassigned | P4 | Resolved | Fixed | team |
There is a check in the makefiles for versions of clang to lower the optimization level. This check needs to take clang 6.0 into account. The straightforward fix is below, however, we should probably verify if the lower optimization is still needed.
diff -r 8e575cec7af9 make/bsd/makefiles/gcc.make
--- a/make/bsd/makefiles/gcc.make Tue Aug 19 11:17:44 2014 -0700
+++ b/make/bsd/makefiles/gcc.make Fri Aug 22 19:06:41 2014 +0200
@@ -325,6 +325,10 @@
else ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& $(CC_VER_MINOR) = 1), 1)
OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
OPT_CFLAGS/unsafe.o += -O1
+ # Clang 6.0
+ else ifeq ($(shell expr $(CC_VER_MAJOR) = 6 \& $(CC_VER_MINOR) = 0), 1)
+ OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
+ OPT_CFLAGS/unsafe.o += -O1
else
$(error "Update compiler workarounds for Clang $(CC_VER_MAJOR).$(CC_VER_MINOR)")
endif
diff -r 8e575cec7af9 make/bsd/makefiles/gcc.make
--- a/make/bsd/makefiles/gcc.make Tue Aug 19 11:17:44 2014 -0700
+++ b/make/bsd/makefiles/gcc.make Fri Aug 22 19:06:41 2014 +0200
@@ -325,6 +325,10 @@
else ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& $(CC_VER_MINOR) = 1), 1)
OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
OPT_CFLAGS/unsafe.o += -O1
+ # Clang 6.0
+ else ifeq ($(shell expr $(CC_VER_MAJOR) = 6 \& $(CC_VER_MINOR) = 0), 1)
+ OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
+ OPT_CFLAGS/unsafe.o += -O1
else
$(error "Update compiler workarounds for Clang $(CC_VER_MAJOR).$(CC_VER_MINOR)")
endif
- backported by
-
JDK-8083354 Hotspot does not compile with clang 6.0 (OS X Yosemite)
- Resolved
-
JDK-8237378 Hotspot does not compile with clang 6.0 (OS X Yosemite)
- Resolved
-
JDK-8239628 Hotspot does not compile with clang 6.0 (OS X Yosemite)
- Resolved
- relates to
-
JDK-8048298 Clang needs to lower optimization level for some files
- Resolved
-
JDK-8077364 "if( !this )" construct prevents build on Xcode 6.3
- Resolved