sane-toolchain-eglibc: use -O2 for qt4-x11-free and libsyncml (needed for gcc-4.4)
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 23 Feb 2010 09:22:25 +0000 (10:22 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 24 Feb 2010 08:29:08 +0000 (09:29 +0100)
* I'll report gcc bug upstream as soon as I prepare simplier test-case

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
conf/distro/include/sane-toolchain-eglibc.inc

index 4c5f44f..1e370d0 100644 (file)
@@ -7,6 +7,14 @@ FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-reg
 FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1"
 FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
+# JaMa: I promise to report bug upstream, but as it can take a while to fix it, I'll switch to -O2 here
+# Tested with gcc-4.4.2 and gcc-4.4.3 on armv4t and armv5te and it fails with -Os, with gcc-4.3.3 it works OK with -Os
+# Here is testcase, but you have to rebuild whole libqtxml to test it
+# http://lists.shr-project.org/pipermail/shr-devel/2010-February/002169.html
+FULL_OPTIMIZATION_pn-qt4-x11-free = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+# This I've seen only on armv4t, it segfaults when called from pisi, but whole test unit suite can pass
+FULL_OPTIMIZATION_pn-libsyncml = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_sparc = "-O2"