20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 # 23 # 24 25 # Sets make macros for making optimized version of HotSpot VM 26 # (This is the "product", not the "release" version.) 27 28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make 29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS) 30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@)) 31 32 # Workaround for a bug in dtrace. If ciEnv::post_compiled_method_load_event() 33 # is inlined, the resulting dtrace object file needs a reference to this 34 # function, whose symbol name is too long for dtrace. So disable inlining 35 # for this method for now. (fix this when dtrace bug 6258412 is fixed) 36 ifndef USE_GCC 37 OPT_CFLAGS/ciEnv.o = $(OPT_CFLAGS) -xinline=no%__1cFciEnvbFpost_compiled_method_load_event6MpnHnmethod__v_ 38 endif 39 40 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files) 41 ifeq ("${Platform_compiler}", "sparcWorks") 42 43 ifeq ($(COMPILER_REV_NUMERIC), 510) 44 # CC 5.10 has bug XXXXX with -xO4 45 OPT_CFLAGS/jvmtiClassFileReconstituter.o = $(OPT_CFLAGS/O2) 46 # Avoid apparent crash because of corrupted methodHandle in a tail call 47 OPT_CFLAGS/simpleThresholdPolicy.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT) 48 endif # COMPILER_REV_NUMERIC == 510 49 50 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 51 # dtrace cannot handle tail call optimization (6672627, 6693876) 52 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT) 53 endif # COMPILER_NUMERIC_REV >= 509 54 55 # Workaround SS11 bug 6345274 (all platforms) (Fixed in SS11 patch and SS12) 56 ifeq ($(COMPILER_REV_NUMERIC),508) 57 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2) 58 endif # COMPILER_REV_NUMERIC == 508 59 | 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 # 23 # 24 25 # Sets make macros for making optimized version of HotSpot VM 26 # (This is the "product", not the "release" version.) 27 28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make 29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS) 30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@)) 31 32 # Workaround for a bug in dtrace. If ciEnv::post_compiled_method_load_event() 33 # is inlined, the resulting dtrace object file needs a reference to this 34 # function, whose symbol name is too long for dtrace. So disable inlining 35 # for this method for now. (fix this when dtrace bug 6258412 is fixed) 36 ifndef USE_GCC 37 OPT_CFLAGS/ciEnv.o = $(OPT_CFLAGS) -xinline=no%__1cFciEnvbFpost_compiled_method_load_event6MpnHnmethod__v_ 38 endif 39 40 # Need extra inlining to get oop_ps_push_contents functions to perform well enough. 41 ifndef USE_GCC 42 OPT_CFLAGS/psPromotionManager.o = $(OPT_CFLAGS) -W2,-Ainline:inc=1000 43 endif 44 45 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files) 46 ifeq ("${Platform_compiler}", "sparcWorks") 47 48 ifeq ($(COMPILER_REV_NUMERIC), 510) 49 # CC 5.10 has bug XXXXX with -xO4 50 OPT_CFLAGS/jvmtiClassFileReconstituter.o = $(OPT_CFLAGS/O2) 51 # Avoid apparent crash because of corrupted methodHandle in a tail call 52 OPT_CFLAGS/simpleThresholdPolicy.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT) 53 endif # COMPILER_REV_NUMERIC == 510 54 55 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 56 # dtrace cannot handle tail call optimization (6672627, 6693876) 57 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT) 58 endif # COMPILER_NUMERIC_REV >= 509 59 60 # Workaround SS11 bug 6345274 (all platforms) (Fixed in SS11 patch and SS12) 61 ifeq ($(COMPILER_REV_NUMERIC),508) 62 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2) 63 endif # COMPILER_REV_NUMERIC == 508 64 |