summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 09:40:46 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 09:40:46 +0000
commita43d1001bdd83184659d83f90a8b717daad65c6b (patch)
treef6ecf6a3f59a6bfdd90bb19dbb98f8415b456d45
parentf2df60270980b4c0cb98a64b4bfbc36eb3358c79 (diff)
downloadgcc-a43d1001bdd83184659d83f90a8b717daad65c6b.tar.gz
* unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158773 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/unwind-dw2.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 95444f19038..fe4e26ec349 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 65d639d4301..2ea9adb06ea 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