aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatcmd.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-07-08 10:03:04 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2013-07-08 10:03:04 +0200
commit6480338ae6d2350656b8c689df8af79c02ebc6be (patch)
treee12db41ef829263091fb89bb2c4d79d18700aaf4 /gcc/ada/gnatcmd.adb
parentaa0dfa7e4e1f1c36b22ddc30162bf2568e51633a (diff)
downloadgcc-6480338ae6d2350656b8c689df8af79c02ebc6be.zip
gcc-6480338ae6d2350656b8c689df8af79c02ebc6be.tar.gz
gcc-6480338ae6d2350656b8c689df8af79c02ebc6be.tar.bz2
[multiple changes]
2013-07-08 Robert Dewar <dewar@adacore.com> * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): Recognize SPARK_05 as synonym for SPARK in restrictions pragma. * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only referenced there. * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK. * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry. 2013-07-08 Vincent Celier <celier@adacore.com> * gnatcmd.adb (Check_Files): Use a response file for gnatls when possible. From-SVN: r200764
Diffstat (limited to 'gcc/ada/gnatcmd.adb')
-rw-r--r--gcc/ada/gnatcmd.adb19
1 files changed, 9 insertions, 10 deletions
diff --git a/gcc/ada/gnatcmd.adb b/gcc/ada/gnatcmd.adb
index be15670..d1ea2be 100644
--- a/gcc/ada/gnatcmd.adb
+++ b/gcc/ada/gnatcmd.adb
@@ -418,6 +418,7 @@ procedure GNATCmd is
if The_Command = Check or else
The_Command = Pretty or else
The_Command = Metric or else
+ The_Command = List or else
The_Command = Stack
then
Tempdir.Create_Temp_File (FD, Temp_File_Name);
@@ -552,12 +553,10 @@ procedure GNATCmd is
end if;
if not Subunit then
- Last_Switches.Increment_Last;
- Last_Switches.Table (Last_Switches.Last) :=
- new String'
- (Get_Name_String
- (Unit.File_Names
- (Impl).Display_File));
+ Add_To_Response_File
+ (Get_Name_String
+ (Unit.File_Names (Impl).Display_File),
+ Check_File => False);
end if;
end if;
@@ -570,10 +569,10 @@ procedure GNATCmd is
if All_Projects or else
Unit.File_Names (Spec).Project = Project
then
- Last_Switches.Increment_Last;
- Last_Switches.Table (Last_Switches.Last) :=
- new String'(Get_Name_String
- (Unit.File_Names (Spec).Display_File));
+ Add_To_Response_File
+ (Get_Name_String
+ (Unit.File_Names (Spec).Display_File),
+ Check_File => False);
end if;
end if;