diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-16 10:51:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-16 10:51:06 +0000 |
commit | f65a763b3e9bb540b2004eabe9ef2c6241ff942c (patch) | |
tree | f9f8e5417da75c4a8a93b552c55e9f172c87fa51 | |
parent | 702771590d64d9ff552d3f99039e8f5e8325394d (diff) |
restore -fno-strict-aliasing for gcc < 4.5
-rw-r--r-- | solenv/inc/unxgcc.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk index 4896b4fb6..8c5bbb405 100644 --- a/solenv/inc/unxgcc.mk +++ b/solenv/inc/unxgcc.mk @@ -120,6 +120,12 @@ GCCNUMVER:=$(shell @-$(CXX) $(GCCNUMVERSION_CMD)) # Compiler flags for enabling optimizations .IF "$(PRODUCT)"!="" CFLAGSOPT=$(CDEFAULTOPT) # optimizing for products +.IF "$(GCCNUMVER)" <= "000400050000" +#At least SLED 10.2 gcc 4.3 overly agressively optimizes +#uno::Sequence into junk, so only strict-alias on compiler +#later than 4.5.1 +CFLAGSOPT+=-fno-strict-aliasing +.ENDIF .ELSE # "$(PRODUCT)"!="" CFLAGSOPT= # no optimizing for non products .ENDIF # "$(PRODUCT)"!="" |