misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
2014-07-31 Doug Rupp <rupp@adacore.com> * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0. From-SVN: r213355
This commit is contained in:
parent
384e3fb1e9
commit
20bebd4c5f
|
@ -1,3 +1,7 @@
|
|||
2014-07-31 Doug Rupp <rupp@adacore.com>
|
||||
|
||||
* gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
|
||||
|
||||
2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
|
||||
|
||||
* sem_util.adb (Is_Effectively_Volatile): New routine.
|
||||
|
|
|
@ -414,6 +414,11 @@ gnat_init_gcc_fp (void)
|
|||
flag_trapping_math = 1;
|
||||
else if (!global_options_set.x_flag_trapping_math)
|
||||
flag_trapping_math = 0;
|
||||
|
||||
/* We don't care in Ada about errno, and it causes __builtin_sqrt to
|
||||
to call the libm function rather than do it inline. */
|
||||
if (!global_options_set.x_flag_errno_math)
|
||||
flag_errno_math = 0;
|
||||
}
|
||||
|
||||
/* Print language-specific items in declaration NODE. */
|
||||
|
|
Loading…
Reference in New Issue