From 934f5b4225f21082f9d9e94cf5c12390d70a727f Mon Sep 17 00:00:00 2001
From: Jakub Jelinek <jakub@redhat.com>
Date: Tue, 27 Apr 2010 11:40:46 +0200
Subject: [PATCH] * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone
 attributes.

From-SVN: r158773
---
 gcc/ChangeLog    | 4 ++++
 gcc/unwind-dw2.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 95444f190380..fe4e26ec3495 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-27  Jakub Jelinek  <jakub@redhat.com>
+
+	* unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
+
 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
 
 	PR target/40657
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c
index 65d639d4301f..2ea9adb06eab 100644
--- a/gcc/unwind-dw2.c
+++ b/gcc/unwind-dw2.c
@@ -1482,7 +1482,8 @@ uw_init_context_1 (struct _Unwind_Context *context,
   context->ra = __builtin_extract_return_addr (outer_ra);
 }
 
-static void _Unwind_DebugHook (void *, void *) __attribute__ ((__noinline__));
+static void _Unwind_DebugHook (void *, void *)
+  __attribute__ ((__noinline__, __used__, __noclone__));
 
 /* This function is called during unwinding.  It is intended as a hook
    for a debugger to intercept exceptions.  CFA is the CFA of the
-- 
GitLab