aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 15:48:13 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 15:48:13 +0200
commit3808a9c7296e110a2ba0b40248445f043547b826 (patch)
tree95f9e15c4186644e62210590592f754ec3248b41 /gcc/ada/init.c
parent24d14b918a541a2903c940dd26ad1d16a2d1d987 (diff)
downloadgcc-3808a9c7296e110a2ba0b40248445f043547b826.zip
gcc-3808a9c7296e110a2ba0b40248445f043547b826.tar.gz
gcc-3808a9c7296e110a2ba0b40248445f043547b826.tar.bz2
[multiple changes]
2014-07-29 Doug Rupp <rupp@adacore.com> * sigtramp-armvxw.c: Enhance to handle RTP trampolining. * init.c: Remove guard on sigtramp for ARM VxWorks RTP. 2014-07-29 Vincent Celier <celier@adacore.com> * switch-c.adb (Scan_Front_End_Switches): Do not fail when two runtime directorie specified with two switches --RTS= designate the same directory, even when there are no literarily the same. 2014-07-29 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Minor documentation clarification. * switch-c.adb: Minor reformatting. From-SVN: r213187
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 587638b..41156ce 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -1703,7 +1703,9 @@ __gnat_install_handler ()
#include <signal.h>
#include <taskLib.h>
-#ifndef __RTP__
+#ifdef __RTP__
+#include <base/b_ucontext_t.h>
+#else
#include <intLib.h>
#include <iv.h>
#endif
@@ -1911,7 +1913,7 @@ __gnat_error_handler (int sig, siginfo_t *si, void *sc)
sigdelset (&mask, sig);
sigprocmask (SIG_SETMASK, &mask, NULL);
-#if (defined (__ARMEL__) || defined (__PPC__)) && defined(_WRS_KERNEL)
+#if defined (__ARMEL__) || (defined (__PPC__) && defined (_WRS_KERNEL))
/* On PowerPC, kernel mode, we process signals through a Call Frame Info
trampoline, voiding the need for myriads of fallback_frame_state
variants in the ZCX runtime. We have no simple way to distinguish ZCX