summaryrefslogtreecommitdiff
path: root/gcc/unwind-c.c
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 15:55:38 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 15:55:38 +0000
commitf406e07ef5dee51738e05a3546ec5af3dd0974c9 (patch)
tree6b262ac07e2b116d237352ff90b639547d322f4a /gcc/unwind-c.c
parent28f1e21fb9fe5d86f401da7faf733b41f83eb5ac (diff)
downloadgcc-f406e07ef5dee51738e05a3546ec5af3dd0974c9.tar.gz
PR target/27880
* unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo. * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo. * configure: Regenerate. * config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117576 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-c.c')
-rw-r--r--gcc/unwind-c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/unwind-c.c b/gcc/unwind-c.c
index cf17b6174d2..c8f34acc0ee 100644
--- a/gcc/unwind-c.c
+++ b/gcc/unwind-c.c
@@ -157,7 +157,11 @@ PERSONALITY_FUNCTION (int version,
/* Parse the LSDA header. */
p = parse_lsda_header (context, language_specific_data, &info);
+#ifdef HAVE_GETIPINFO
ip = _Unwind_GetIPInfo (context, &ip_before_insn);
+#else
+ ip = _Unwind_GetIP (context);
+#endif
if (! ip_before_insn)
--ip;
landing_pad = 0;