hotspot/make/solaris/makefiles/adlc.make
changeset 35948 df8ecc74bf4a
parent 32593 a7b94dee5c9d
equal deleted inserted replaced
35947:48c797584ac2 35948:df8ecc74bf4a
    64 
    64 
    65 # Force assertions on.
    65 # Force assertions on.
    66 CXXFLAGS += -DASSERT
    66 CXXFLAGS += -DASSERT
    67 
    67 
    68 ifndef USE_GCC
    68 ifndef USE_GCC
    69   # We need libCstd.so for adlc 
    69   # We need libCstd.so for adlc
    70   CFLAGS += -library=Cstd -g
    70   CFLAGS += -library=Cstd -g
    71   LFLAGS += -library=Cstd -g
    71   LFLAGS += -library=Cstd -g
    72 endif
    72 endif
    73 
    73 
    74 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
    74 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
       
    75 CFLAGS_WARN = +w
    75 # Compiler warnings are treated as errors
    76 # Compiler warnings are treated as errors
    76 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
    77 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
    77   CFLAGS_WARN = +w -errwarn
    78   WARNINGS_ARE_ERRORS ?= -xwe
    78 endif
    79 endif
    79 # When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly 
    80 
       
    81 CFLAGS_WARN += $(WARNINGS_ARE_ERRORS)
       
    82 
       
    83 # When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly
    80 # instantiated template functions trigger this warning when +w is active.
    84 # instantiated template functions trigger this warning when +w is active.
    81 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1)
    85 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1)
    82   CFLAGS_WARN += -erroff=notemsource
    86   CFLAGS_WARN += -erroff=notemsource
    83 endif
    87 endif
    84 CFLAGS += $(CFLAGS_WARN)
    88 CFLAGS += $(CFLAGS_WARN)