Mercurial > hg > release > icedtea7-forest-2.5 > jdk
changeset 7947:e4aec8a11c8a
PR2069: Type-punning warnings still evident on RHEL 5
Summary: Add -fno-strict-aliasing to the whole of sun/font and to waiters.cpp
author | andrew |
---|---|
date | Wed, 05 Nov 2014 15:40:16 +0000 |
parents | 0af95754ffc5 |
children | d909950c3f6d |
files | make/mkdemo/jvmti/waiters/Makefile make/sun/font/Makefile |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/make/mkdemo/jvmti/waiters/Makefile Tue Feb 26 11:12:40 2013 -0800 +++ 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
--- a/make/sun/font/Makefile Tue Feb 26 11:12:40 2013 -0800 +++ 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