[OpenJDK 2D-Dev] [PATCH FOR REVIEW] Building ExtensionSubtables.cpp should use -fno-strict-aliasing
Andrew Haley
aph at redhat.com
Tue May 29 17:55:55 UTC 2012
On 05/29/2012 06:12 PM, Kelly O'Hair wrote:
>
> You should be able to do something like:
>
> # Turn off aliasing with GCC for ExtensionSubtables.cpp
> ifeq ($(PLATFORM), linux)
> CXXFLAGS += $(CXXFLAGS_$(@F))
> CC_NEWER_THAN_43 := \
> $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
> \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \> 3 \) )
> ifeq ($(CC_NEWER_THAN_43),1)
> CXXFLAGS_ExtensionSubtables.o = -fno-strict-aliasing
> endif
> endif
No way: -fno-strict-aliasing has been in GCC for a very long time, and it's
certainly in 4.0. You'll need it in 4.3.
Andrew.
More information about the build-dev
mailing list