aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatcmd.adb
diff options
context:
space:
mode:
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;