This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Missing inhibit_libc check on SH
- From: Andrew Stubbs <ams at codesourcery dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 02 Apr 2009 11:34:15 +0100
- Subject: Re: [PATCH] Missing inhibit_libc check on SH
- References: <4989B25B.900@codesourcery.com> <4989B2A8.3050706@codesourcery.com> <20090205.073855.85247372.kkojima@rr.iij4u.or.jp>
On 04/02/09 22:38, Kaz Kojima wrote:
The copyright year should be updated. Ok for 4.5 with
that change.
Thanks Kaz. I committed the attached patch.
Andrew
2009-04-02 Andrew Stubbs <ams@codesourcery.com>
gcc/
* config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
---
src/gcc-mainline/gcc/config/sh/linux-unwind.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
Index: src/gcc-mainline/gcc/config/sh/linux-unwind.h
===================================================================
--- src/gcc-mainline/gcc/config/sh/linux-unwind.h.orig
+++ src/gcc-mainline/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 Frankli
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_
return _URC_NO_REASON;
}
#endif /* defined (__SH5__) */
+
+#endif /* inhibit_libc */