7171223: Building ExtensionSubtables.cpp should use -fno-strict-aliasing
authorandrew
Wed, 30 May 2012 16:17:48 +0100
changeset 12810 d9307058c48b
parent 12809 a6fda26b8430
child 12811 859419a97d2b
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
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: