aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2020-11-04 14:11:41 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2020-11-27 04:15:52 -0500
commite2df202345674e28d19df035f5a206fadb6d8f8c (patch)
treeb0bf6e9b9ed93bbf1e6a2944309169f7102c0df7
parentcc7c52c1d9c9524e3ee0764808de343127b5e9fc (diff)
downloadgcc-e2df202345674e28d19df035f5a206fadb6d8f8c.zip
gcc-e2df202345674e28d19df035f5a206fadb6d8f8c.tar.gz
gcc-e2df202345674e28d19df035f5a206fadb6d8f8c.tar.bz2
[Ada] Do not compile predefined units with -gnatp in gnatmake
gcc/ada/ * make.adb (GNAT_Flag): Change to "-gnatg". (Compile): Adjust comments accordingly.
-rw-r--r--gcc/ada/make.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 1288875..ede4c5a 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -464,7 +464,7 @@ package body Make is
Ada_Flag_1 : constant String_Access := new String'("-x");
Ada_Flag_2 : constant String_Access := new String'("ada");
AdaSCIL_Flag : constant String_Access := new String'("adascil");
- GNAT_Flag : constant String_Access := new String'("-gnatpg");
+ GNAT_Flag : constant String_Access := new String'("-gnatg");
Do_Not_Check_Flag : constant String_Access := new String'("-x");
Object_Suffix : constant String := Get_Target_Object_Suffix.all;
@@ -1677,7 +1677,7 @@ package body Make is
L : File_Name_Type;
Source_Index : Int;
Args : Argument_List) return Process_Id;
- -- Compiles S using Args. If S is a GNAT predefined source "-gnatpg" is
+ -- Compiles S using Args. If S is a GNAT predefined source "-gnatg" is
-- added to Args. Non blocking call. L corresponds to the expected
-- library file name. Process_Id of the process spawned to execute the
-- compilation.
@@ -2027,7 +2027,7 @@ package body Make is
end loop;
end;
- -- Set -gnatpg for predefined files (for this purpose the renamings
+ -- Set -gnatg for predefined files (for this purpose the renamings
-- such as Text_IO do not count as predefined). Note that we strip
-- the directory name from the source file name because the call to
-- Fname.Is_Predefined_File_Name cannot deal with directory prefixes.