comparison make/solaris/makefiles/optimized.make @ 158:a49545cab84a

6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles) Summary: Allows for building with SS12, no longer requires SS11, warns if not SS11 for now. Once SS12 is validated and performance measurements look ok, SS12 will be the validated compiler. Reviewed-by: sspitsyn, ikrylov
author ohair
date Tue, 27 May 2008 09:47:18 -0700
parents a294fd0c4b38
children d1605aabd0a1
comparison
equal deleted inserted replaced
157:a3e5744fafda 158:a49545cab84a
28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make 28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make
29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS) 29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS)
30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@)) 30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@))
31 31
32 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files) 32 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files)
33 ifeq ("${Platform_compiler}", "sparcWorks")
33 34
34 # Workaround SS11 bug 6345274 (all platforms) 35 # Problem with SS12 compiler, dtrace doesn't like the .o files (bug 6693876)
35 ifeq ("${Platform_compiler}", "sparcWorks") 36 ifeq ($(COMPILER_REV),5.9)
36 ifeq ($(shell expr $(COMPILER_REV) \>= 5.8), 1) 37 # Not clear this workaround could be skipped in some cases.
38 OPT_CFLAGS/vmGCOperations.o = $(OPT_CFLAGS/SLOWER) -g
39 OPT_CFLAGS/java.o = $(OPT_CFLAGS/SLOWER) -g
40 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/SLOWER) -g
41 endif
42
43 # Workaround SS11 bug 6345274 (all platforms) (Fixed in SS11 patch and SS12)
44 ifeq ($(COMPILER_REV),5.8))
37 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2) 45 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2)
38 endif # COMPILER_REV >= 5.8 46 endif # COMPILER_REV == 5.8
47
39 endif # Platform_compiler == sparcWorks 48 endif # Platform_compiler == sparcWorks
40 49
41 # If you set HOTSPARC_GENERIC=yes, you disable all OPT_CFLAGS settings 50 # If you set HOTSPARC_GENERIC=yes, you disable all OPT_CFLAGS settings
42 CFLAGS$(HOTSPARC_GENERIC) += $(OPT_CFLAGS/BYFILE) 51 CFLAGS$(HOTSPARC_GENERIC) += $(OPT_CFLAGS/BYFILE)
43 52