Commit bd1643cc by Eric Botcazou Committed by Eric Botcazou

re PR ada/85007 (-b flag to gnatlink not recognized)

	PR ada/85007
	* gnatlink.adb (Gnatlink): Remove handling of -b switch.
	* doc/gnat_ugn/building_executable_programs_with_gnat.rst (gnatlink):
	Remove documentation of -b switch.

From-SVN: r258828
parent f8e56962
2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
PR ada/85007
* gnatlink.adb (Gnatlink): Remove handling of -b switch.
* doc/gnat_ugn/building_executable_programs_with_gnat.rst (gnatlink):
Remove documentation of -b switch.
2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
PR ada/85036
* gnatlink.adb (Process_Args): Drop existing link switches if multiple
switches are passed for --LINK.
......
......@@ -7270,14 +7270,6 @@ The following switches are available with the ``gnatlink`` utility:
an executable called :file:`try`.
.. index:: -b (gnatlink)
:switch:`-b {target}`
Compile your program to run on ``target``, which is the name of a
system configuration. You must have a GNAT cross-compiler built if
``target`` is not the same as your host system.
.. index:: -B (gnatlink)
:switch:`-B{dir}`
......
......@@ -425,36 +425,6 @@ procedure Gnatlink is
elsif Arg'Length = 2 then
case Arg (2) is
when 'b' =>
Linker_Options.Increment_Last;
Linker_Options.Table (Linker_Options.Last) :=
new String'(Arg);
Binder_Options.Increment_Last;
Binder_Options.Table (Binder_Options.Last) :=
Linker_Options.Table (Linker_Options.Last);
Next_Arg := Next_Arg + 1;
if Next_Arg > Argument_Count then
Exit_With_Error ("Missing argument for -b");
end if;
Get_Machine_Name : declare
Name_Arg : constant String_Access :=
new String'(Argument (Next_Arg));
begin
Linker_Options.Increment_Last;
Linker_Options.Table (Linker_Options.Last) :=
Name_Arg;
Binder_Options.Increment_Last;
Binder_Options.Table (Binder_Options.Last) :=
Name_Arg;
end Get_Machine_Name;
when 'f' =>
if Object_List_File_Supported then
Object_List_File_Required := True;
......@@ -1430,7 +1400,6 @@ procedure Gnatlink is
Write_Line (" -v -v Very verbose mode");
Write_Eol;
Write_Line (" -o nam Use 'nam' as the name of the executable");
Write_Line (" -b target Compile the binder source to run on target");
Write_Line (" -Bdir Load compiler executables from dir");
if Is_Supported (Map_File) 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