# HG changeset patch # User andrew # Date 1415202016 0 # Node ID 33a33bbea1ae3a7feef5f3216e85c56b708444f4 # Parent 1dca7b2b663bf099f77eb279b6c08eb637fba07f PR2069: Type-punning warnings still evident on RHEL 5 Summary: Add -fno-strict-aliasing to the whole of sun/font and to waiters.cpp diff -r 1dca7b2b663b -r 33a33bbea1ae make/mkdemo/jvmti/waiters/Makefile --- a/make/mkdemo/jvmti/waiters/Makefile Thu Oct 30 22:54:21 2014 +0000 +++ b/make/mkdemo/jvmti/waiters/Makefile Wed Nov 05 15:40:16 2014 +0000 @@ -41,3 +41,7 @@ # include $(BUILDDIR)/common/Demo.gmk +# Turn off aliasing with GCC +ifeq ($(PLATFORM), linux) + CXXFLAGS += -fno-strict-aliasing +endif diff -r 1dca7b2b663b -r 33a33bbea1ae make/sun/font/Makefile --- a/make/sun/font/Makefile Thu Oct 30 22:54:21 2014 +0000 +++ b/make/sun/font/Makefile Wed Nov 05 15:40:16 2014 +0000 @@ -94,10 +94,9 @@ endif # PLATFORM -# Turn off aliasing with GCC for ExtensionSubtables.cpp +# Turn off aliasing with GCC ifeq ($(PLATFORM), linux) - CXXFLAGS += $(CXXFLAGS_$(@F)) - CXXFLAGS_ExtensionSubtables.o = -fno-strict-aliasing + CXXFLAGS += -fno-strict-aliasing endif # Turn on infinality rendering support when requested