From cbe591cc1fa765e126b2b0c149893e368b3a9e8f Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 30 May 2012 16:17:48 +0100 Subject: [PATCH] 7171223: Building ExtensionSubtables.cpp should use -fno-strict-aliasing Summary: GCC 4.4+ have stricter aliasing requirements which produces a new warning from this code Reviewed-by: prr, ohair --- make/sun/font/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/make/sun/font/Makefile b/make/sun/font/Makefile index 5dd35dd53..b449b5a3d 100644 --- a/make/sun/font/Makefile +++ b/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: -- GitLab