diff options
author | Arnaud Charlet <charlet@adacore.com> | 2019-07-18 16:37:40 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2019-07-18 18:37:40 +0200 |
commit | a6fc663e311b2b862373e4a4f3ee7d6836acb1a2 (patch) | |
tree | 6d0223791c112e5b47e7dd4a5dc668f65c71ca4f /gcc/ada/init.c | |
parent | b9a0100963b357e7e84084e45bbc51d6576410a4 (diff) | |
download | gcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.zip gcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.tar.gz gcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.tar.bz2 |
Makefile.rtl, [...]: Introduce a "STANDALONE" mode where C runtime files do not have any dependency...
* Makefile.rtl, expect.c, env.c, aux-io.c, mkdir.c, initialize.c,
cstreams.c, raise.c, tracebak.c, adadecode.c, init.c, raise-gcc.c,
argv.c, adaint.c, adaint.h, ctrl_c.c, sysdep.c, rtinit.c, cio.c,
seh_init.c, exit.c, targext.c: Introduce a "STANDALONE" mode where C
runtime files do not have any dependency on GCC include files.
Remove unnecessary includes.
Remove remaining references to VMS in runtime C file.
* runtime.h: new File.
From-SVN: r273576
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r-- | gcc/ada/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c index 300a7e1..f7e830e 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -54,8 +54,14 @@ #endif #ifdef IN_RTS + +#ifdef STANDALONE +#include "runtime.h" +#else #include "tconfig.h" #include "tsystem.h" +#endif + #include <sys/stat.h> /* We don't have libiberty, so use malloc. */ @@ -463,6 +469,7 @@ void fake_linux_sigemptyset (sigset_t *set) void __gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED, void *ucontext) { +#ifndef STANDALONE mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext; /* On the i386 and x86-64 architectures, stack checking is performed by @@ -513,6 +520,7 @@ __gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED, void *ucontext) mcontext->arm_pc+=1; #endif #endif +#endif } #endif |