aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-11-25 16:16:44 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2015-11-25 16:16:44 +0100
commit7b52257cfa555812c6755dd69f21ee92e7d2bd5b (patch)
tree8d535f154978a199ca451ad1d97e0e1958f471f5 /gcc/ada/init.c
parente9c12b91f480ce15810dc0be2afc174899f4eea7 (diff)
downloadgcc-7b52257cfa555812c6755dd69f21ee92e7d2bd5b.zip
gcc-7b52257cfa555812c6755dd69f21ee92e7d2bd5b.tar.gz
gcc-7b52257cfa555812c6755dd69f21ee92e7d2bd5b.tar.bz2
[multiple changes]
2015-11-25 Arnaud Charlet <charlet@adacore.com> * exp_util.adb (Remove_Side_Effects): Minimize extra temporaries and use of 'Reference when needed. 2015-11-25 Doug Rupp <rupp@adacore.com> * sigtramp-vxworks-target.inc (__x86_64__): Restore context for the sake of uniformity. * init.c (__gnat_inum_to_ivec): Add some casting to avoid warnings when sizeof(long) != sizeof(int) 2015-11-25 Yannick Moy <moy@adacore.com> * lib-xref-spark_specific.adb (SPARK_Entities): Add entries for consideration. (Add_SPARK_Scope): Take tasks into account. (Detect_And_Add_SPARK_Scope): Take tasks into account. (Enclosing_Subprogram_Or_Library_Package): Take tasks into account. From-SVN: r230878
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r--gcc/ada/init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 06e366d..2f01c8d 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -1732,7 +1732,7 @@ extern int __gnat_inum_to_ivec (int);
int
__gnat_inum_to_ivec (int num)
{
- return (int) INUM_TO_IVEC (num);
+ return (int) ((long) INUM_TO_IVEC ((long) num));
}
#endif
@@ -1985,14 +1985,14 @@ __gnat_error_handler (int sig, siginfo_t *si, void *sc)
#ifdef HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE
/* We need to sometimes to adjust the PC in case of signals so that it
doesn't reference the exception that actually raised the signal but the
- instruction before it. */
+ instruction before it. */
__gnat_adjust_context_for_raise (sig, sc);
#endif
#if defined (__i386__) && !defined (VTHREADS) && (__WRS_VXWORKS_MAJOR < 7)
/* On x86, the vxsim signal context is subtly different and is processeed
by a handler compiled especially for vxsim.
- Vxsim is not supported anymore on our vxworks-7 port. */
+ Vxsim is not supported anymore on our vxworks-7 port. */
if (is_vxsim)
__gnat_vxsim_error_handler (sig, si, sc);
@@ -2115,9 +2115,9 @@ __gnat_init_float (void)
#endif
#endif
-#if defined (__i386__) && !defined (VTHREADS)
+#if (defined (__i386__) && !defined (VTHREADS))
/* This is used to properly initialize the FPU on an x86 for each
- process thread. */
+ process thread. Is this needed for x86_64 ??? */
asm ("finit");
#endif