[Libreoffice-commits] .: solenv/inc

Caolán McNamara caolan at kemper.freedesktop.org
Wed Feb 16 02:55:55 PST 2011


 solenv/inc/unxgcc.mk |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit f65a763b3e9bb540b2004eabe9ef2c6241ff942c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 16 10:51:06 2011 +0000

    restore -fno-strict-aliasing for gcc < 4.5

diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index 4896b4f..8c5bbb4 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)"!=""


More information about the Libreoffice-commits mailing list