1 $NetBSD: patch-hotspot_make_solaris_makefiles_adlc.make,v 1.1 2015/07/03 20:40:59 fhajny Exp $
5 --- hotspot/make/solaris/makefiles/adlc.make.orig
6 +++ hotspot/make/solaris/makefiles/adlc.make
9 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
10 # Compiler warnings are treated as errors
11 +ifeq ("${Platform_compiler}", "sparcWorks")
12 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
13 CFLAGS_WARN = +w -errwarn
16 # When using compiler version 5.13 (Solaris Studio 12.4), calls to explicitly
17 # instantiated template functions trigger this warning when +w is active.
18 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 513), 1)