From 7b52257cfa555812c6755dd69f21ee92e7d2bd5b Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Wed, 25 Nov 2015 16:16:44 +0100 Subject: [multiple changes] 2015-11-25 Arnaud Charlet * exp_util.adb (Remove_Side_Effects): Minimize extra temporaries and use of 'Reference when needed. 2015-11-25 Doug Rupp * 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 * 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 --- gcc/ada/init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/ada/init.c') 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 -- cgit v1.1