Commit b3d18092 by Piotr Trojanek Committed by Pierre-Marie de Rodat

[Ada] Fix RM rule references

2018-07-17  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

	* sem_util.ads (Denotes_Same_Object): Likewise.
	* sem_warn.adb (Warn_On_Overlapping_Actuals): Fix RM rule references.

From-SVN: r262798
parent 02fd37f5
2018-07-17 Piotr Trojanek <trojanek@adacore.com>
* sem_util.ads (Denotes_Same_Object): Likewise.
* sem_warn.adb (Warn_On_Overlapping_Actuals): Fix RM rule references.
2018-07-17 Eric Botcazou <ebotcazou@adacore.com> 2018-07-17 Eric Botcazou <ebotcazou@adacore.com>
* exp_disp.adb (Make_Tags): When the type has user-defined primitives, * exp_disp.adb (Make_Tags): When the type has user-defined primitives,
......
...@@ -585,7 +585,7 @@ package Sem_Util is ...@@ -585,7 +585,7 @@ package Sem_Util is
function Denotes_Same_Object (A1, A2 : Node_Id) return Boolean; function Denotes_Same_Object (A1, A2 : Node_Id) return Boolean;
-- Detect suspicious overlapping between actuals in a call, when both are -- Detect suspicious overlapping between actuals in a call, when both are
-- writable (RM 2012 6.4.1(6.4/3)) -- writable (RM 2012 6.4.1(6.4/3)).
function Denotes_Same_Prefix (A1, A2 : Node_Id) return Boolean; function Denotes_Same_Prefix (A1, A2 : Node_Id) return Boolean;
-- Functions to detect suspicious overlapping between actuals in a call, -- Functions to detect suspicious overlapping between actuals in a call,
......
...@@ -3630,9 +3630,8 @@ package body Sem_Warn is ...@@ -3630,9 +3630,8 @@ package body Sem_Warn is
Form1 : Entity_Id; Form1 : Entity_Id;
Form2 : Entity_Id; Form2 : Entity_Id;
Warn_Only : Boolean; Warn_Only : Boolean;
-- GNAT warns on overlapping in-out parameters even when there are no -- GNAT warns on overlapping in-out parameters of any type, not just for
-- two in-out parameters of an elementary type, as stated in -- elementary in-out parameters (as specified in RM 6.4.1 (15/3-17/3)).
-- RM 6.5.1 (17/2).
-- Start of processing for Warn_On_Overlapping_Actuals -- Start of processing for Warn_On_Overlapping_Actuals
......
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