gcc/ada/
* bindgen.adb (Gen_Main): Put back support for -G
* bindusg.adb (Display): Put back line for -G
* opt.ads (CCG_Mode): Update doc
* switch-b.adb (Scan_Binder_Switches): Put back support for -G
if Bind_Main_Program
and then not Minimal_Binder
and then not CodePeer_Mode
+ and then not CCG_Mode
then
WBI (" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
Write_Line
(" -F Force checking of elaboration Flags");
+ -- Line for -G switch
+
+ Write_Line
+ (" -G Generate binder file suitable for CCG");
+
-- Line for -h switch
Write_Line
-- (switch -B)
CCG_Mode : Boolean := False;
- -- Set to True when running as CCG (either via -gnatceg or via -emit-c)
+ -- GNAT, GNATBIND
+ -- Set to True when running as CCG (implicitly, via -emit-c, or -G for the
+ -- binder)
Check_Aliasing_Of_Parameters : Boolean := False;
-- GNAT
Debugger_Level := 2;
end if;
+ -- Processing for G switch
+
+ when 'G' =>
+ Ptr := Ptr + 1;
+ CCG_Mode := True;
+
-- Processing for h switch
when 'h' =>