From 1b6a45d291d2cd96dc2e00640d4d40a2210a3aec Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Wed, 30 May 2012 16:17:48 +0100 Subject: [PATCH] 7171223: Building ExtensionSubtables.cpp should use -fno-strict-aliasing GCC 4.4+ have stricter aliasing requirements which produces a new warning from this code Reviewed-by: prr, ohair --- jdk/make/sun/font/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jdk/make/sun/font/Makefile b/jdk/make/sun/font/Makefile index 5dd35dd533e..b449b5a3dc3 100644 --- a/jdk/make/sun/font/Makefile +++ b/jdk/make/sun/font/Makefile @@ -90,6 +90,12 @@ else # PLATFORM unix endif # PLATFORM +# Turn off aliasing with GCC for ExtensionSubtables.cpp +ifeq ($(PLATFORM), linux) + CXXFLAGS += $(CXXFLAGS_$(@F)) + CXXFLAGS_ExtensionSubtables.o = -fno-strict-aliasing +endif + #In the non-OpenJDK mode we need to build T2K ifndef OPENJDK t2k: