Commit fb620f0e by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] Handle -gx switches explicitly

2018-11-14  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

	* adabkend.adb (Scan_Back_End_Switches): Handle -gx switches
	explicitly.

From-SVN: r266108
parent cbf9e2fe
2018-11-14 Arnaud Charlet <charlet@adacore.com>
* adabkend.adb (Scan_Back_End_Switches): Handle -gx switches
explicitly.
2018-11-13 Eric Botcazou <ebotcazou@adacore.com> 2018-11-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions * gcc-interface/misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions
......
...@@ -186,6 +186,26 @@ package body Adabkend is ...@@ -186,6 +186,26 @@ package body Adabkend is
Opt.Suppress_Control_Flow_Optimizations := True; Opt.Suppress_Control_Flow_Optimizations := True;
return; return;
-- Recognize -gxxx switches
elsif Switch_Chars (First) = 'g' then
Debugger_Level := 2;
if First < Last then
case Switch_Chars (First + 1) is
when '0' =>
Debugger_Level := 0;
when '1' =>
Debugger_Level := 1;
when '2' =>
Debugger_Level := 2;
when '3' =>
Debugger_Level := 3;
when others =>
null;
end case;
end if;
-- Ignore all other back end switches -- Ignore all other back end switches
elsif Is_Back_End_Switch (Switch_Chars) then elsif Is_Back_End_Switch (Switch_Chars) then
......
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