OpenJDK / jdk / jdk
changeset 3174:ccc5c0d5c20c
6851829: solaris build fails with 5.8 compilers
Summary: Solaris builds with the CC 5.8 compilers (used for jdk6 update builds) fail while compiling adlc.
Reviewed-by: never
author | twisti |
---|---|
date | Wed, 17 Jun 2009 09:08:56 -0700 |
parents | ad4ba6ce75a5 |
children | 333736275947 |
files | hotspot/make/solaris/makefiles/adlc.make |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/make/solaris/makefiles/adlc.make Wed Jun 10 12:19:48 2009 -0700 +++ b/hotspot/make/solaris/makefiles/adlc.make Wed Jun 17 09:08:56 2009 -0700 @@ -68,7 +68,9 @@ # CFLAGS_WARN holds compiler options to suppress/enable warnings. # Compiler warnings are treated as errors -CFLAGS_WARN = +w -errwarn +ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) + CFLAGS_WARN = +w -errwarn +endif CFLAGS += $(CFLAGS_WARN) ifeq ("${Platform_compiler}", "sparcWorks")