* 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: r266178
+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-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions
flag_exceptions = 1;
flag_delete_dead_exceptions = 1;
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
{
flag_non_call_exceptions = 1;