OSDN Git Service

2008-03-26 Javier Miranda <miranda@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 07:38:16 +0000 (07:38 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 07:38:16 +0000 (07:38 +0000)
commit4c06b9d2320505d379392e32262dbcaa90c17da8
treed372641a25b1510d1a128e297a1fefd0e4146ab3
parent65278bb305efd880b722b738730364a1813260dd
2008-03-26  Javier Miranda  <miranda@adacore.com>
    Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (N_Pragma): Chars field removed.
(Expand_N_Attribute_Reference): If the designated type associated with
attribute 'Unrestricted_Access is a subprogram entity then replace it
by an E_Subprogram_Type itype.
Implement attribute Old

* sem_attr.ads (Attribute_Class_Array): Move to snames.ads

* sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
Replace call to
New_Internal_Entity by call to Create_Itype to centralize calls
building itypes, ad propagate the convention of the designated
subprogram. In addition, disable the machinery cleaning constant
indications from all entities in current scope when 'Unrestricted_Access
corresponds with a node initializing a dispatch table slot.
(Analyze_Attribute): Parameterless attributes returning a string or a
type will not be called with improper arguments, so we can remove junk
code that was dealing with this case.
Implement attribute Old

* snames.ads, snames.h, snames.adb: Add entries for attribute Old
Add entry for pragma Optimize_Alignment
New standard names Sync and Synchronize

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133559 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/exp_attr.adb
gcc/ada/sem_attr.adb
gcc/ada/snames.adb
gcc/ada/snames.ads
gcc/ada/snames.h