changeset 4881:2c423d0b1965

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 b14271a17d58
children d567e1a9b596
files make/sun/font/Makefile
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/sun/font/Makefile	Wed May 22 18:20:28 2013 +0100
+++ 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: