Commit 5f3040ed by Eric Botcazou Committed by Eric Botcazou

misc.c (gnat_init_gcc_eh): Do not override the switch -fnon-call-exceptions…

misc.c (gnat_init_gcc_eh): Do not override the switch -fnon-call-exceptions passed on the command line in...

	* gcc-interface/misc.c (gnat_init_gcc_eh): Do not override the switch
	-fnon-call-exceptions passed on the command line in -gnatp mode.

From-SVN: r266176
parent bca7138a
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
* exp_ch4.adb (Expand_Boolean_Operation): Use this new profile. * exp_ch4.adb (Expand_Boolean_Operation): Use this new profile.
* exp_pakd.adb (Expand_Packed_Boolean_Operator): Ditto. * exp_pakd.adb (Expand_Packed_Boolean_Operator): Ditto.
2018-11-15 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/misc.c (gnat_init_gcc_eh): Do not override the switch
-fnon-call-exceptions passed on the command line in -gnatp mode.
2018-11-14 Patrick Bernardi <bernardi@adacore.com> 2018-11-14 Patrick Bernardi <bernardi@adacore.com>
* libgnarl/a-intnam__linux.ads: Add SIGSYS. * libgnarl/a-intnam__linux.ads: Add SIGSYS.
......
...@@ -412,7 +412,10 @@ gnat_init_gcc_eh (void) ...@@ -412,7 +412,10 @@ gnat_init_gcc_eh (void)
flag_exceptions = 1; flag_exceptions = 1;
flag_delete_dead_exceptions = 1; flag_delete_dead_exceptions = 1;
if (Suppress_Checks) if (Suppress_Checks)
flag_non_call_exceptions = Machine_Overflows_On_Target && GNAT_Mode; {
if (!global_options_set.x_flag_non_call_exceptions)
flag_non_call_exceptions = Machine_Overflows_On_Target && GNAT_Mode;
}
else else
{ {
flag_non_call_exceptions = 1; flag_non_call_exceptions = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment