Commit 8a8ac7e3 by Yannick Moy Committed by Arnaud Charlet

snames.ads-tmpl: Minor change to list Loop_(In)variant not in configuration pragma.

2013-04-24  Yannick Moy  <moy@adacore.com>

	* snames.ads-tmpl: Minor change to list
	Loop_(In)variant not in configuration pragma.
	* sem_ch3.adb (Analyze_Declarations): Do not look at the original node
	for analyzing the expressions in pre/postconditions.

From-SVN: r198239
parent dd3b3672
2013-04-24 Yannick Moy <moy@adacore.com>
* snames.ads-tmpl: Minor change to list
Loop_(In)variant not in configuration pragma.
* sem_ch3.adb (Analyze_Declarations): Do not look at the original node
for analyzing the expressions in pre/postconditions.
2013-04-24 Robert Dewar <dewar@adacore.com> 2013-04-24 Robert Dewar <dewar@adacore.com>
* gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
......
...@@ -2188,16 +2188,13 @@ package body Sem_Ch3 is ...@@ -2188,16 +2188,13 @@ package body Sem_Ch3 is
declare declare
Decl : Node_Id; Decl : Node_Id;
Subp_Decl : Node_Id;
Subp_Id : Entity_Id; Subp_Id : Entity_Id;
begin begin
Decl := First (L); Decl := First (L);
while Present (Decl) loop while Present (Decl) loop
Subp_Decl := Original_Node (Decl); if Nkind (Decl) = N_Subprogram_Declaration then
Subp_Id := Defining_Unit_Name (Specification (Decl));
if Nkind (Subp_Decl) = N_Subprogram_Declaration then
Subp_Id := Defining_Unit_Name (Specification (Subp_Decl));
Analyze_Subprogram_Contract (Subp_Id); Analyze_Subprogram_Contract (Subp_Id);
end if; end if;
......
...@@ -411,9 +411,7 @@ package Snames is ...@@ -411,9 +411,7 @@ package Snames is
Name_License : constant Name_Id := N + $; -- GNAT Name_License : constant Name_Id := N + $; -- GNAT
Name_Locking_Policy : constant Name_Id := N + $; Name_Locking_Policy : constant Name_Id := N + $;
Name_Long_Float : constant Name_Id := N + $; -- VMS Name_Long_Float : constant Name_Id := N + $; -- VMS
Name_Loop_Invariant : constant Name_Id := N + $; -- GNAT
Name_Loop_Optimize : constant Name_Id := N + $; -- GNAT Name_Loop_Optimize : constant Name_Id := N + $; -- GNAT
Name_Loop_Variant : constant Name_Id := N + $; -- GNAT
Name_No_Run_Time : constant Name_Id := N + $; -- GNAT Name_No_Run_Time : constant Name_Id := N + $; -- GNAT
Name_No_Strict_Aliasing : constant Name_Id := N + $; -- GNAT Name_No_Strict_Aliasing : constant Name_Id := N + $; -- GNAT
Name_Normalize_Scalars : constant Name_Id := N + $; Name_Normalize_Scalars : constant Name_Id := N + $;
...@@ -549,6 +547,8 @@ package Snames is ...@@ -549,6 +547,8 @@ package Snames is
-- of the type Pragma_Id, and the functions Get_Pragma_Id and Is_Pragma_Id -- of the type Pragma_Id, and the functions Get_Pragma_Id and Is_Pragma_Id
-- correctly recognize and process Lock_Free. Lock_Free is a GNAT pragma. -- correctly recognize and process Lock_Free. Lock_Free is a GNAT pragma.
Name_Loop_Invariant : constant Name_Id := N + $; -- GNAT
Name_Loop_Variant : constant Name_Id := N + $; -- GNAT
Name_Machine_Attribute : constant Name_Id := N + $; -- GNAT Name_Machine_Attribute : constant Name_Id := N + $; -- GNAT
Name_Main : constant Name_Id := N + $; -- GNAT Name_Main : constant Name_Id := N + $; -- GNAT
Name_Main_Storage : constant Name_Id := N + $; -- GNAT Name_Main_Storage : constant Name_Id := N + $; -- GNAT
...@@ -1721,9 +1721,7 @@ package Snames is ...@@ -1721,9 +1721,7 @@ package Snames is
Pragma_License, Pragma_License,
Pragma_Locking_Policy, Pragma_Locking_Policy,
Pragma_Long_Float, Pragma_Long_Float,
Pragma_Loop_Invariant,
Pragma_Loop_Optimize, Pragma_Loop_Optimize,
Pragma_Loop_Variant,
Pragma_No_Run_Time, Pragma_No_Run_Time,
Pragma_No_Strict_Aliasing, Pragma_No_Strict_Aliasing,
Pragma_Normalize_Scalars, Pragma_Normalize_Scalars,
...@@ -1827,6 +1825,8 @@ package Snames is ...@@ -1827,6 +1825,8 @@ package Snames is
Pragma_Linker_Options, Pragma_Linker_Options,
Pragma_Linker_Section, Pragma_Linker_Section,
Pragma_List, Pragma_List,
Pragma_Loop_Invariant,
Pragma_Loop_Variant,
Pragma_Machine_Attribute, Pragma_Machine_Attribute,
Pragma_Main, Pragma_Main,
Pragma_Main_Storage, Pragma_Main_Storage,
......
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