aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatls.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gnatls.adb')
-rw-r--r--gcc/ada/gnatls.adb27
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/ada/gnatls.adb b/gcc/ada/gnatls.adb
index a98aba5..cf0e3c3 100644
--- a/gcc/ada/gnatls.adb
+++ b/gcc/ada/gnatls.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -1253,6 +1253,8 @@ procedure Gnatls is
FD : File_Descriptor;
Len : Integer;
+ OK : Boolean;
+
begin
pragma Assert (Argv'First = 1);
@@ -1260,6 +1262,7 @@ procedure Gnatls is
return;
end if;
+ OK := True;
if Argv (1) = '-' then
if Argv'Length = 1 then
Fail ("switch character cannot be followed by a blank");
@@ -1297,6 +1300,11 @@ procedure Gnatls is
elsif Argv'Length >= 3 and then Argv (2 .. 3) = "aL" then
Add_Lib_Dir (Argv (4 .. Argv'Last));
+ -- Processing for -aP<dir>
+
+ elsif Argv'Length > 3 and then Argv (1 .. 3) = "-aP" then
+ Add_Directories (Prj_Path, Argv (4 .. Argv'Last));
+
-- Processing for -nostdinc
elsif Argv (2 .. Argv'Last) = "nostdinc" then
@@ -1316,7 +1324,7 @@ procedure Gnatls is
when 'l' => License := True;
when 'V' => Very_Verbose_Mode := True;
- when others => null;
+ when others => OK := False;
end case;
-- Processing for -files=file
@@ -1396,6 +1404,9 @@ procedure Gnatls is
Opt.No_Stdinc := True;
Opt.RTS_Switch := True;
end if;
+
+ else
+ OK := False;
end if;
-- If not a switch, it must be a file name
@@ -1403,6 +1414,13 @@ procedure Gnatls is
else
Add_File (Argv);
end if;
+
+ if not OK then
+ Write_Str ("warning: unknown switch """);
+ Write_Str (Argv);
+ Write_Line ("""");
+ end if;
+
end Scan_Ls_Arg;
-----------
@@ -1484,6 +1502,11 @@ procedure Gnatls is
Write_Str (" -aOdir specify object files search path");
Write_Eol;
+ -- Line for -aP switch
+
+ Write_Str (" -aPdir specify project search path");
+ Write_Eol;
+
-- Line for -I switch
Write_Str (" -Idir like -aIdir -aOdir");