[poky] [PATCH B] atom-pc: work around gcc bug for core2

Darren Hart dvhart at linux.intel.com
Wed Mar 16 14:50:57 PDT 2011


Fixes [YOCTO #853]

Without these added optimization flags, the matchbox-panel (and possibly other)
applications would segfault. This patch applies the changes to all machines
derived from atom-pc.conf.

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
CC: Ke Yu <ke.yu at intel.com>
---
 meta/conf/machine/include/tune-atom.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/conf/machine/include/tune-atom.inc b/meta/conf/machine/include/tune-atom.inc
index a401856..db78b0d 100644
--- a/meta/conf/machine/include/tune-atom.inc
+++ b/meta/conf/machine/include/tune-atom.inc
@@ -3,3 +3,7 @@ TARGET_CC_ARCH = "-m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse"
 #MOBLIN_CFLAGS = "-Os -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
 
 PACKAGE_EXTRA_ARCHS += "x86 i386 i486 i586 core2"
+
+# Work around a gcc bug for core2 which caused matchbox-panel to segfault
+# and possibly others.
+FULL_OPTIMIZATION = "-fexpensive-optimizations -frename-registers -O2 -ggdb -feliminate-unused-debug-types"
-- 
1.7.1




More information about the poky mailing list