diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2008-10-04 14:35:59 +0000 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2008-10-04 14:35:59 +0000 |
commit | d9a4683da8347fcf1c4e375190c3c7124738b770 (patch) | |
tree | 7578e1440dd37e1951b3ab91e9b0e962ed90791f /packages/gcc/gcc-4.3.2/sh_unwind.patch | |
parent | faaf10c4178c43ff3b2fe7f2e89f275e80c76f40 (diff) |
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
Diffstat (limited to 'packages/gcc/gcc-4.3.2/sh_unwind.patch')
-rw-r--r-- | packages/gcc/gcc-4.3.2/sh_unwind.patch | 18 |
1 files changed, 18 insertions, 0 deletions
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 0000000000..94921636bc --- /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 */ |