comparison make/solaris/makefiles/fastdebug.make @ 430:4d20a3aaf1ab

6769748: Fix solaris makefiles for the case when "CC -V" produces several lines Summary: Fix solaris makefiles for 5.10 compilers Reviewed-by: jcoomes
author kvn
date Wed, 12 Nov 2008 11:01:31 -0800
parents be7facf71163
children c1345e85f901
comparison
equal deleted inserted replaced
429:364141474b40 430:4d20a3aaf1ab
35 35
36 ifeq ("${Platform_compiler}", "sparcWorks") 36 ifeq ("${Platform_compiler}", "sparcWorks")
37 OPT_CFLAGS/SLOWER = -xO2 37 OPT_CFLAGS/SLOWER = -xO2
38 38
39 # Problem with SS12 compiler, dtrace doesn't like the .o files (bug 6693876) 39 # Problem with SS12 compiler, dtrace doesn't like the .o files (bug 6693876)
40 ifeq ($(COMPILER_REV), 5.9) 40 ifeq ($(COMPILER_REV_NUMERIC), 509)
41 # To avoid jvm98 crash 41 # To avoid jvm98 crash
42 OPT_CFLAGS/instanceKlass.o = $(OPT_CFLAGS/SLOWER) 42 OPT_CFLAGS/instanceKlass.o = $(OPT_CFLAGS/SLOWER)
43 # Not clear this workaround could be skipped in some cases. 43 # Not clear this workaround could be skipped in some cases.
44 OPT_CFLAGS/vmGCOperations.o = $(OPT_CFLAGS/SLOWER) 44 OPT_CFLAGS/vmGCOperations.o = $(OPT_CFLAGS/SLOWER)
45 OPT_CFLAGS/java.o = $(OPT_CFLAGS/SLOWER) 45 OPT_CFLAGS/java.o = $(OPT_CFLAGS/SLOWER)
46 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/SLOWER) 46 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/SLOWER)
47 endif 47 endif
48 48
49 ifeq ($(COMPILER_REV), 5.5) 49 ifeq ($(COMPILER_REV_NUMERIC), 505)
50 # CC 5.5 has bug 4908364 with -xO4 (Fixed in 5.6) 50 # CC 5.5 has bug 4908364 with -xO4 (Fixed in 5.6)
51 OPT_CFLAGS/library_call.o = $(OPT_CFLAGS/SLOWER) 51 OPT_CFLAGS/library_call.o = $(OPT_CFLAGS/SLOWER)
52 endif # COMPILER_REV == 5.5 52 endif # COMPILER_REV_NUMERIC == 505
53 53
54 ifeq ($(shell expr $(COMPILER_REV) \<= 5.4), 1) 54 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \<= 504), 1)
55 # Compilation of *_<arch>.cpp can take an hour or more at O3. Use O2 55 # Compilation of *_<arch>.cpp can take an hour or more at O3. Use O2
56 # See comments at top of sparc.make. 56 # See comments at top of sparc.make.
57 OPT_CFLAGS/ad_$(Platform_arch).o = $(OPT_CFLAGS/SLOWER) 57 OPT_CFLAGS/ad_$(Platform_arch).o = $(OPT_CFLAGS/SLOWER)
58 OPT_CFLAGS/dfa_$(Platform_arch).o = $(OPT_CFLAGS/SLOWER) 58 OPT_CFLAGS/dfa_$(Platform_arch).o = $(OPT_CFLAGS/SLOWER)
59 endif # COMPILER_REV <= 5.4 59 endif # COMPILER_REV_NUMERIC <= 504
60 60
61 ifeq (${COMPILER_REV}, 5.0) 61 ifeq (${COMPILER_REV_NUMERIC}, 500)
62 # Avoid a compiler bug caused by using -xO<level> -g<level> 62 # Avoid a compiler bug caused by using -xO<level> -g<level>
63 # Since the bug also occurs with -xO0, use an innocuous value (must not be null) 63 # Since the bug also occurs with -xO0, use an innocuous value (must not be null)
64 OPT_CFLAGS/c1_LIROptimizer_i486.o = -c 64 OPT_CFLAGS/c1_LIROptimizer_i486.o = -c
65 endif 65 endif
66 66
67 ifeq ($(shell expr $(COMPILER_REV) \< 5.5), 1) 67 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \< 505), 1)
68 # Same problem with Solaris/x86 compiler (both 5.0 and 5.2) on ad_i486.cpp. 68 # Same problem with Solaris/x86 compiler (both 5.0 and 5.2) on ad_i486.cpp.
69 # CC build time is also too long for ad_i486_{gen,misc}.o 69 # CC build time is also too long for ad_i486_{gen,misc}.o
70 OPT_CFLAGS/ad_i486.o = -c 70 OPT_CFLAGS/ad_i486.o = -c
71 OPT_CFLAGS/ad_i486_gen.o = -c 71 OPT_CFLAGS/ad_i486_gen.o = -c
72 OPT_CFLAGS/ad_i486_misc.o = -c 72 OPT_CFLAGS/ad_i486_misc.o = -c