aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-10-24 10:58:31 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-10-24 10:58:31 +0000
commit2f18d9afae52f1cb10d5cb9e7d1fdbe4dc8710f0 (patch)
treef18809223e14555c22ed59339f3d9e9ea2598d3d /gcc/ada/init.c
parentc0f81f78ae9aa3931b3b5472eb138ff3815d10de (diff)
downloadgcc-2f18d9afae52f1cb10d5cb9e7d1fdbe4dc8710f0.zip
gcc-2f18d9afae52f1cb10d5cb9e7d1fdbe4dc8710f0.tar.gz
gcc-2f18d9afae52f1cb10d5cb9e7d1fdbe4dc8710f0.tar.bz2
Makefile.in (GNATLIBCFLAGS_FOR_C): New variable.
libada/ * Makefile.in (GNATLIBCFLAGS_FOR_C): New variable. (LIBADA_FLAGS_TO_PASS): Add GNATLIBCFLAGS_FOR_C. * configure.ac: Include config/unwind_ipinfo.m4. Check for _Unwind_GetIPInfo. * configure: Regenerate. gcc/ada/ * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo. * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO. Pass GNATLIBCFLAGS_FOR_C to recursive invocations. gcc/testsuite/ * gnat.dg/null_pointer_deref1.adb: New test. * gnat.dg/null_pointer_deref2.adb: Likewise. From-SVN: r153525
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r--gcc/ada/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 5fe46cd..0483d82 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -2301,8 +2301,10 @@ __gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED,
{
/* We used to compensate here for the raised from call vs raised from signal
exception discrepancy with the GCC ZCX scheme, but this now can be dealt
- with generically in the unwinder (see GCC PR other/26208). Only the VMS
- ports still do the compensation described in the few lines below.
+ with generically in the unwinder (see GCC PR other/26208). This however
+ requires the use of the _Unwind_GetIPInfo routine in raise-gcc.c, which
+ is predicated on the definition of HAVE_GETIPINFO at compile time. Only
+ the VMS ports still do the compensation described in the few lines below.
*** Call vs signal exception discrepancy with GCC ZCX scheme ***