hotspot/make/solaris/makefiles/adlc.make
changeset 3174 ccc5c0d5c20c
parent 2154 72a9b7284ccf
child 5352 cee8f7acb7bc
equal deleted inserted replaced
3172:ad4ba6ce75a5 3174:ccc5c0d5c20c
    66   LFLAGS += -library=Cstd -g
    66   LFLAGS += -library=Cstd -g
    67 endif
    67 endif
    68 
    68 
    69 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
    69 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
    70 # Compiler warnings are treated as errors
    70 # Compiler warnings are treated as errors
    71 CFLAGS_WARN = +w -errwarn
    71 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
       
    72   CFLAGS_WARN = +w -errwarn
       
    73 endif
    72 CFLAGS += $(CFLAGS_WARN)
    74 CFLAGS += $(CFLAGS_WARN)
    73 
    75 
    74 ifeq ("${Platform_compiler}", "sparcWorks")
    76 ifeq ("${Platform_compiler}", "sparcWorks")
    75 # Enable the following CFLAGS addition if you need to compare the
    77 # Enable the following CFLAGS addition if you need to compare the
    76 # built ELF objects.
    78 # built ELF objects.