exp_attr.adb (Expand_N_Attribute_Reference, [...]): If attribute Mechanism_Code is...
authorRobert Dewar <dewar@adacore.com>
Wed, 15 Feb 2006 09:37:43 +0000 (10:37 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:37:43 +0000 (10:37 +0100)
commit80d4224f5b0b90b4f3da875043512003342d6f01
tree9d0234798b82bda730e6be3efd6ad0682284e35d
parentd8f7b976d7f6ba52d1b71770c6d03ff408294b18
exp_attr.adb (Expand_N_Attribute_Reference, [...]): If attribute Mechanism_Code is applied to renamed subprogram...

2006-02-13  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
attribute Mechanism_Code is applied to renamed subprogram, modify
prefix to point to base subprogram.
Max/Min attributes now violate Restriction No_Implicit_Conditionals

* sinfo.ads: Document that Mechanism_Code cannot be applied to
renamed subprograms so that the front-end must replace the prefix
appropriately.

From-SVN: r111058
gcc/ada/exp_attr.adb
gcc/ada/sinfo.ads