# HG changeset patch # User erikj # Date 1440748674 -7200 # Node ID a7b94dee5c9deaebec5fa5e218349c71e5e01895 # Parent b4acfa743bb67d8f861ce1628c9b0db0c7c7bddb 8134157: adlc fails to compile with SS12u4 Reviewed-by: dholmes, kbarrett, ihse diff -r b4acfa743bb6 -r a7b94dee5c9d hotspot/make/solaris/makefiles/adlc.make --- a/hotspot/make/solaris/makefiles/adlc.make Thu Aug 27 16:28:05 2015 +0200 +++ b/hotspot/make/solaris/makefiles/adlc.make Fri Aug 28 09:57:54 2015 +0200 @@ -76,6 +76,11 @@ ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) CFLAGS_WARN = +w -errwarn endif +# When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly +# instantiated template functions trigger this warning when +w is active. +ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1) + CFLAGS_WARN += -erroff=notemsource +endif CFLAGS += $(CFLAGS_WARN) ifeq ("${Platform_compiler}", "sparcWorks")