Skip to contentSkip to conversation

sane-toolchain-*glibc.inc: Use -O2 on PowerPC

PATCH In review Tom Rini 2 participants 2 messages Nov 17, 2010

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 sane-toolchain-*glibc.inc: Use -O2 on PowerPC

In FULL_OPTIMIZATION use -O2 on powerpc due to some problems with libgcc.a and -Os when using gcc 4.5.x.

---
 conf/distro/include/sane-toolchain-eglibc.inc |    3 +++
 conf/distro/include/sane-toolchain-glibc.inc  |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
conf/distro/include/sane-toolchain-eglibc.inc +3 -0
index c077ed1..77f2e3b 100644
@@ -9,6 +9,9 @@ FULL_OPTIMIZATION_pn-eglibc_arm = "-fexpensive-optimizations -fomit-frame-pointe
 FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1"
 FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
+# gcc 4.5 has a problem with 'leakage' into libgcc.a with -Os
+FULL_OPTIMIZATION_powerpc = "-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
conf/distro/include/sane-toolchain-glibc.inc +3 -0
index e806de6..5802ef1 100644
@@ -13,6 +13,9 @@ FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -fre
 FULL_OPTIMIZATION_pn-glibc = "-fexpensive-optimizations -fomit-frame-pointer -O2"
 FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
+# gcc 4.5 has a problem with 'leakage' into libgcc.a with -Os
+FULL_OPTIMIZATION_powerpc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_pn-glibc = "-O2"
 BUILD_OPTIMIZATION_sparc = "-O2"
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 4 lines · Tom Rini

In FULL_OPTIMIZATION use -O2 on powerpc due to some problems with libgcc.a and -Os when using gcc 4.5.x.

patch is ok. In comment you should also mention gcc 4.4 which has the same problem.

Quoted 42 lines

---
 conf/distro/include/sane-toolchain-eglibc.inc |    3 +++ conf/distro/include/sane-toolchain-glibc.inc  |    3 +++

 2 files changed, 6 insertions(+), 0 deletions(-)
conf/distro/include/sane-toolchain-eglibc.inc +0 -0
index c077ed1..77f2e3b 100644
@@ -9,6 +9,9 @@ FULL_OPTIMIZATION_pn-eglibc_arm = "-fexpensive-optimizations -fomit-frame-pointe

 FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"

conf/distro/include/sane-toolchain-eglibc.inc +3 -0
+# gcc 4.5 has a problem with 'leakage' into libgcc.a with -Os
+FULL_OPTIMIZATION_powerpc = "-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

conf/distro/include/sane-toolchain-glibc.inc +0 -0
index e806de6..5802ef1 100644
@@ -13,6 +13,9 @@ FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -fre

 FULL_OPTIMIZATION_pn-glibc = "-fexpensive-optimizations -fomit-frame-pointer -O2" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"

conf/distro/include/sane-toolchain-glibc.inc +3 -0
+# gcc 4.5 has a problem with 'leakage' into libgcc.a with -Os
+FULL_OPTIMIZATION_powerpc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+

 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_pn-glibc = "-O2"
 BUILD_OPTIMIZATION_sparc = "-O2"
--
1.7.0.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel