# HG changeset patch # User andrew # Date 1338391068 -3600 # Node ID d9307058c48bd638d1504517cca121bfe2d95b7d # Parent a6fda26b8430b47c7f40bfe59724da3ffd2912e8 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 diff -r a6fda26b8430 -r d9307058c48b jdk/make/sun/font/Makefile --- a/jdk/make/sun/font/Makefile Fri May 25 19:34:32 2012 -0700 +++ b/jdk/make/sun/font/Makefile Wed May 30 16:17:48 2012 +0100 @@ -90,6 +90,12 @@ 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: