This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Missing inhibit_libc check on SH


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 */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]