changeset 5073:44de1584da44

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
author andrew
date Wed, 30 May 2012 16:17:48 +0100
parents 32e41a5f855c
children a4ba0f6d3f9b
files make/sun/font/Makefile
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/sun/font/Makefile	Tue Jun 12 07:34:15 2012 -0700
+++ b/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: