aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2009-04-02 10:32:31 +0000
committerAndrew Stubbs <ams@gcc.gnu.org>2009-04-02 10:32:31 +0000
commit47e4dfcf4a4770e17ade0a4a1d10cc41e2675554 (patch)
tree0d3eabe12f1d9ee1774a3c03db43f2fe825fb7d8
parentd0940d56623ac8e6e6f43c873d039c2466bb6798 (diff)
downloadgcc-47e4dfcf4a4770e17ade0a4a1d10cc41e2675554.zip
gcc-47e4dfcf4a4770e17ade0a4a1d10cc41e2675554.tar.gz
gcc-47e4dfcf4a4770e17ade0a4a1d10cc41e2675554.tar.bz2
linux-unwind.h: Disable when inhibit_libc is defined.
2009-04-02 Andrew Stubbs <ams@codesourcery.com> * config/sh/linux-unwind.h: Disable when inhibit_libc is defined. From-SVN: r145442
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/sh/linux-unwind.h9
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e50c34c..2afe2bb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-02 Andrew Stubbs <ams@codesourcery.com>
+
+ * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
+
2009-04-02 Dodji Seketeli <dodji@redhat.com>
PR c++/26693
diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h
index 3a3e9aa..0e83f8c 100644
--- a/gcc/config/sh/linux-unwind.h
+++ b/gcc/config/sh/linux-unwind.h
@@ -1,5 +1,5 @@
/* DWARF2 EH unwinding support for SH Linux.
- Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
This file is part of GCC.
@@ -27,7 +27,10 @@ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* Do code reading to identify a signal frame, and set the frame
- state data appropriately. See unwind-dw2.c for the structs. */
+ state data appropriately. See unwind-dw2.c for the structs.
+ Don't use this at all if inhibit_libc is used. */
+
+#ifndef inhibit_libc
#include <signal.h>
#include <sys/ucontext.h>
@@ -251,3 +254,5 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
return _URC_NO_REASON;
}
#endif /* defined (__SH5__) */
+
+#endif /* inhibit_libc */