@@ -150,13 +150,6 @@ package body Exp_Ch2 is
and then OK_To_Do_Constant_Replacement (E)
- -- Do not replace occurrences in pragmas (where names typically
- -- appear not as values, but as simply names. If there are cases
- -- where values are required, it is only a very minor efficiency
- -- issue that they do not get replaced when they could be).
-
- and then Nkind (Parent (N)) /= N_Pragma_Argument_Association
-
-- Do not replace the prefixes of attribute references, since this
-- causes trouble with cases like 4'Size. Also for Name_Asm_Input and
-- Name_Asm_Output, don't do replacement anywhere, since we can have
@@ -34,7 +34,6 @@ with Elists; use Elists;
with Errout; use Errout;
with Exp_Ch11; use Exp_Ch11;
with Exp_Util; use Exp_Util;
-with Expander; use Expander;
with Inline; use Inline;
with Lib; use Lib;
with Namet; use Namet;
@@ -2390,10 +2389,7 @@ package body Exp_Prag is
Set_Pragma_Argument_Associations (N, A);
end if;
- -- Process the arguments of the pragma and expand them. Expanding an
- -- entity reference is a noop, except in a protected operation, where
- -- a reference may have to be transformed into a reference to the
- -- corresponding prival. Are there other pragmas that require this ???
+ -- Process the arguments of the pragma
Rip := False;
Assoc := First (Pragma_Argument_Associations (N));
@@ -2402,8 +2398,6 @@ package body Exp_Prag is
Set_Address_Taken (Entity (Expression (Assoc)));
- Expand (Expression (Assoc));
-
-- If any of the objects have a freeze node, it must appear before
-- pragma Inspection_Point, otherwise the entity won't be elaborated
-- when Gigi processes the pragma.