summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_prag.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 07:43:59 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 07:43:59 +0000
commit204948b1f98bd9b0e81c86eb2517438e9aa994dd (patch)
tree6950f932ec7e2043a54a277a6f82a9c5c322856a /gcc/ada/exp_prag.adb
parent20e13d022742230e7bd1ee33e51e3e64d3cfc982 (diff)
downloadgcc-204948b1f98bd9b0e81c86eb2517438e9aa994dd.tar.gz
2008-03-26 Robert Dewar <dewar@adacore.com>
* tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c, par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field removed, use Chars (Pragma_Identifier (.. instead, adjustments throughout to accomodate this change. * s-pooglo.ads, s-pooloc.ads: Minor comment updates * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not Einfo.Set_Needs_Debug_Info) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_prag.adb')
-rw-r--r--gcc/ada/exp_prag.adb20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/ada/exp_prag.adb b/gcc/ada/exp_prag.adb
index 27869a83827..deabc2d27bd 100644
--- a/gcc/ada/exp_prag.adb
+++ b/gcc/ada/exp_prag.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -116,12 +116,14 @@ package body Exp_Prag is
---------------------
procedure Expand_N_Pragma (N : Node_Id) is
+ Pname : constant Name_Id := Pragma_Name (N);
+
begin
- -- Note: we may have a pragma whose chars field is not a
+ -- Note: we may have a pragma whose Pragma_Identifier field is not a
-- recognized pragma, and we must ignore it at this stage.
- if Is_Pragma_Name (Chars (N)) then
- case Get_Pragma_Id (Chars (N)) is
+ if Is_Pragma_Name (Pname) then
+ case Get_Pragma_Id (Pname) is
-- Pragmas requiring special expander action
@@ -350,6 +352,8 @@ package body Exp_Prag is
-- For now we do nothing with the size attribute ???
+ -- Note: Psect_Object shares this processing
+
procedure Expand_Pragma_Common_Object (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
@@ -392,7 +396,6 @@ package body Exp_Prag is
-- Insert the pragma
Insert_After_And_Analyze (N,
-
Make_Pragma (Loc,
Chars => Name_Machine_Attribute,
Pragma_Argument_Associations => New_List (
@@ -731,10 +734,7 @@ package body Exp_Prag is
-- Convert to Common_Object, and expand the resulting pragma
- procedure Expand_Pragma_Psect_Object (N : Node_Id) is
- begin
- Set_Chars (N, Name_Common_Object);
- Expand_Pragma_Common_Object (N);
- end Expand_Pragma_Psect_Object;
+ procedure Expand_Pragma_Psect_Object (N : Node_Id)
+ renames Expand_Pragma_Common_Object;
end Exp_Prag;