Commit c1e0259c by Robert Dewar Committed by Arnaud Charlet

tbuild.ads, tbuild.adb: Fix location of flag for unrecognized pragma message

2007-12-06  Robert Dewar  <dewar@adacore.com>

	* tbuild.ads, tbuild.adb: 
	Fix location of flag for unrecognized pragma message

From-SVN: r130868
parent 543b4428
...@@ -347,6 +347,25 @@ package body Tbuild is ...@@ -347,6 +347,25 @@ package body Tbuild is
return LS; return LS;
end Make_Linker_Section_Pragma; end Make_Linker_Section_Pragma;
-----------------
-- Make_Pragma --
-----------------
function Make_Pragma
(Sloc : Source_Ptr;
Chars : Name_Id;
Pragma_Argument_Associations : List_Id := No_List;
Debug_Statement : Node_Id := Empty) return Node_Id
is
begin
return
Make_Pragma (Sloc,
Chars => Chars,
Pragma_Argument_Associations => Pragma_Argument_Associations,
Debug_Statement => Debug_Statement,
Pragma_Identifier => Make_Identifier (Sloc, Chars));
end Make_Pragma;
--------------------------------- ---------------------------------
-- Make_Raise_Constraint_Error -- -- Make_Raise_Constraint_Error --
--------------------------------- ---------------------------------
......
...@@ -48,17 +48,17 @@ package Tbuild is ...@@ -48,17 +48,17 @@ package Tbuild is
procedure Discard_Node (N : Node_Or_Entity_Id); procedure Discard_Node (N : Node_Or_Entity_Id);
pragma Inline (Discard_Node); pragma Inline (Discard_Node);
-- This is a dummy procedure that simply returns and does nothing. -- This is a dummy procedure that simply returns and does nothing. It is
-- It is used when a function returning a Node_Id value is called -- used when a function returning a Node_Id value is called for its side
-- for its side effect (e.g. a call to Make to construct a node) -- effect (e.g. a call to Make to construct a node) but the Node_Id value
-- but the Node_Id value is not required. -- is not required.
procedure Discard_List (L : List_Id); procedure Discard_List (L : List_Id);
pragma Inline (Discard_List); pragma Inline (Discard_List);
-- This is a dummy procedure that simply returns and does nothing. -- This is a dummy procedure that simply returns and does nothing. It is
-- It is used when a function returning a Node_Id value is called -- used when a function returning a Node_Id value is called for its side
-- for its side effect (e.g. a call to the pareser to parse a list -- effect (e.g. a call to the pareser to parse a list of compilation
-- of compilation units), but the List_Id value is not required. -- units), but the List_Id value is not required.
function Make_Byte_Aligned_Attribute_Reference function Make_Byte_Aligned_Attribute_Reference
(Sloc : Source_Ptr; (Sloc : Source_Ptr;
...@@ -71,8 +71,8 @@ package Tbuild is ...@@ -71,8 +71,8 @@ package Tbuild is
function Make_DT_Access function Make_DT_Access
(Loc : Source_Ptr; Rec : Node_Id; Typ : Entity_Id) return Node_Id; (Loc : Source_Ptr; Rec : Node_Id; Typ : Entity_Id) return Node_Id;
-- Create an access to the Dispatch Table by using the Tag field -- Create an access to the Dispatch Table by using the Tag field of a
-- of a tagged record : Acc_Dt (Rec.tag).all -- tagged record : Acc_Dt (Rec.tag).all
function Make_Implicit_Exception_Handler function Make_Implicit_Exception_Handler
(Sloc : Source_Ptr; (Sloc : Source_Ptr;
...@@ -136,6 +136,14 @@ package Tbuild is ...@@ -136,6 +136,14 @@ package Tbuild is
-- Construct a Linker_Section pragma for entity Ent, using string Sec as -- Construct a Linker_Section pragma for entity Ent, using string Sec as
-- the section name. Loc is the Sloc value to use in building the pragma. -- the section name. Loc is the Sloc value to use in building the pragma.
function Make_Pragma
(Sloc : Source_Ptr;
Chars : Name_Id;
Pragma_Argument_Associations : List_Id := No_List;
Debug_Statement : Node_Id := Empty) return Node_Id;
-- A convenient form of Make_Pragma not requiring a Pragma_Identifier
-- argument (this argument is built from the value given for Chars).
function Make_Raise_Constraint_Error function Make_Raise_Constraint_Error
(Sloc : Source_Ptr; (Sloc : Source_Ptr;
Condition : Node_Id := Empty; Condition : Node_Id := Empty;
......
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