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
--- 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: