[oe-commits] Khem Raj : zlib.inc: Add -fforward-propagate on arm.

git version control git at git.openembedded.org
Sat Jun 5 13:53:40 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 0df02f7d999090a40eea1858e43557fc4e1ccaf3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=0df02f7d999090a40eea1858e43557fc4e1ccaf3

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Jun  2 13:09:22 2010 -0700

zlib.inc: Add -fforward-propagate on arm.

* Needed on -O1 compile. Generally we use -Os where
  this option is already enabled. But we enable is anyway
  so it gets picked at -O1 too which we use with DEBUG builds.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Acked-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/zlib/zlib.inc |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/recipes/zlib/zlib.inc b/recipes/zlib/zlib.inc
index 0f7bea0..5b00ccf 100644
--- a/recipes/zlib/zlib.inc
+++ b/recipes/zlib/zlib.inc
@@ -3,7 +3,13 @@ SECTION = "libs"
 PRIORITY = "required"
 HOMEPAGE = "http://www.gzip.org/zlib/"
 LICENSE = "zlib"
-INC_PR ="r6"
+INC_PR ="r7"
+
+# Below option is added to overcome the GCC bug on ARM 
+# see http://gcc.gnu.org/PR42981 for further details.
+# We could potentially take it off when its fixed in gcc 4.5
+
+CFLAGS_append_arm = " -fforward-propagate "
 
 BBCLASSEXTEND = "native sdk"
 





More information about the Openembedded-commits mailing list