]> code.ossystems Code Review - openembedded-core.git/commitdiff
atom-pc: work around gcc bug for core2
authorDarren Hart <dvhart@linux.intel.com>
Wed, 16 Mar 2011 21:50:57 +0000 (14:50 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Mar 2011 00:16:19 +0000 (00:16 +0000)
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.

[Tweaked by RP to apply to gtk+ only]
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/tune-atom.inc

index 66d960ac4f8317a22895d1588698d5586241cfd3..2b4907fa3c8e1b4a1c72f4da00a8c7b17cd11f38 100644 (file)
@@ -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 core2"
+
+# Work around a gcc bug for core2 which caused matchbox-panel to segfault
+# and possibly others.
+FULL_OPTIMIZATION_pn-gtk+ = "-fexpensive-optimizations -frename-registers -O2 -ggdb -feliminate-unused-debug-types"