1.1 --- a/make/solaris/makefiles/fastdebug.make Mon May 17 00:47:28 2010 -0700 1.2 +++ b/make/solaris/makefiles/fastdebug.make Tue May 18 11:02:18 2010 -0700 1.3 @@ -36,15 +36,15 @@ 1.4 ifeq ("${Platform_compiler}", "sparcWorks") 1.5 OPT_CFLAGS/SLOWER = -xO2 1.6 1.7 -# Problem with SS12 compiler, dtrace doesn't like the .o files (bug 6693876) 1.8 ifeq ($(COMPILER_REV_NUMERIC), 509) 1.9 - # To avoid jvm98 crash 1.10 - OPT_CFLAGS/instanceKlass.o = $(OPT_CFLAGS/SLOWER) 1.11 - # Not clear this workaround could be skipped in some cases. 1.12 - OPT_CFLAGS/vmGCOperations.o = $(OPT_CFLAGS/SLOWER) 1.13 - OPT_CFLAGS/java.o = $(OPT_CFLAGS/SLOWER) 1.14 - OPT_CFLAGS/jni.o = $(OPT_CFLAGS/SLOWER) 1.15 -endif 1.16 +# To avoid jvm98 crash 1.17 +OPT_CFLAGS/instanceKlass.o = $(OPT_CFLAGS/SLOWER) 1.18 +endif # COMPILER_NUMERIC_REV == 509 1.19 + 1.20 +ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 1.21 +# dtrace cannot handle tail call optimization (6672627, 6693876) 1.22 +OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT) 1.23 +endif # COMPILER_NUMERIC_REV >= 509 1.24 1.25 ifeq ($(COMPILER_REV_NUMERIC), 505) 1.26 # CC 5.5 has bug 4908364 with -xO4 (Fixed in 5.6)