toolchain/gcc/4.2.4: Add missing hunk to gcc 4.2.4 libgcc patch.
authorWill Newton <will.newton@gmail.com>
Fri, 18 Feb 2011 12:55:55 +0000 (12:55 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Feb 2011 22:32:49 +0000 (23:32 +0100)
This patch is required to build gcc 4.2.4 libgcc with dwarf2
unwinding support enabled.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/gcc/4.2.4/1001-gcc-4.2.x-inhibit-libc.patch

index 9a7c9097488676eb61a08139abe19ebd41eafb03..b039dfc3d7e2662969c6abcceb4bc6db437f50e8 100644 (file)
  alias (_Unwind_Find_FDE);
  #endif
 +#endif
+--- gcc-4.2.4/gcc/unwind-dw2-fde.c     2005-06-25 03:02:01.000000000 +0100
++++ gcc-4.2.4/gcc/unwind-dw2-fde.c     2010-08-12 10:43:24.221690613 +0100
+@@ -29,6 +29,8 @@
+ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.  */
+
++#ifndef inhibit_libc
++
+ #ifndef _Unwind_Find_FDE
+ #include "tconfig.h"
+ #include "tsystem.h"
+@@ -1028,3 +1030,5 @@
+
+   return f;
+ }
++
++#endif