[oe-commits] : gcc-4.3.2: fix unwind compiling when libc headers are available

OE GIT Trial gittrial at amethyst.openembedded.net
Sat Oct 4 15:22:13 UTC 2008


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

Author:  <woglinde2 at openembedded.org>
Date:   Sat Oct  4 14:35:59 2008 +0000

gcc-4.3.2: fix unwind compiling when libc headers are available
* add sh_unwind.patch, which fixes gcc/config/sh/linux-unwind.h
  like mips or i386
* patch will only ne applied for sh4 arch for now
* do not bump PR because it only affects sh architecture
  on which gcc did not build before

---

 packages/gcc/gcc-4.3.2.inc             |    3 +++
 packages/gcc/gcc-4.3.2/sh_unwind.patch |   18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/packages/gcc/gcc-4.3.2.inc b/packages/gcc/gcc-4.3.2.inc
index 49b2a63..21c08ff 100644
--- a/packages/gcc/gcc-4.3.2.inc
+++ b/packages/gcc/gcc-4.3.2.inc
@@ -59,6 +59,9 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 
 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch;patch=1 "
 
+SRC_URI_append_sh4  = " file://sh_unwind.patch;patch=1 \
+		      "
+
 # Language Overrides
 FORTRAN = ""
 JAVA = ""
diff --git a/packages/gcc/gcc-4.3.2/sh_unwind.patch b/packages/gcc/gcc-4.3.2/sh_unwind.patch
new file mode 100644
index 0000000..9492163
--- /dev/null
+++ b/packages/gcc/gcc-4.3.2/sh_unwind.patch
@@ -0,0 +1,18 @@
+Index: gcc-4.2.4/gcc/config/sh/linux-unwind.h
+===================================================================
+--- gcc-4.2.4.orig/gcc/config/sh/linux-unwind.h	2008-10-04 00:05:29.434889757 +0200
++++ gcc-4.2.4/gcc/config/sh/linux-unwind.h	2008-10-04 00:06:02.594883544 +0200
+@@ -26,6 +26,7 @@
+ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.  */
+ 
++#ifndef inhibit_libc
+ /* Do code reading to identify a signal frame, and set the frame
+    state data appropriately.  See unwind-dw2.c for the structs.  */
+ 
+@@ -251,3 +252,5 @@
+   return _URC_NO_REASON;
+ }
+ #endif /* defined (__SH5__) */
++
++#endif /* defined inhibit_libc */





More information about the Openembedded-commits mailing list