OSDN Git Service

2011-09-02 Bob Duff <duff@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2011 09:32:10 +0000 (09:32 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2011 09:32:10 +0000 (09:32 +0000)
commitb585d56b609a4a47b2dad43250cd779bcbe103f0
treecaef630ef7510b81c5a71c1d4defcfb67cfe67f9
parent8fad61af5988af50d670bd6594c563150eeb4a61
2011-09-02  Bob Duff  <duff@adacore.com>

* lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
compilers don't understand it.

2011-09-02  Gary Dismukes  <dismukes@adacore.com>

* exp_attr.adb (Expand_N_Attribute_Reference): Pass the
underlying subtype rather than its base type on the call to
Build_Record_Or_Elementary_Input_Function, so that any
constraints on a discriminated subtype will be available for
doing the check required by AI05-0192.
* exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
If the prefix subtype of the 'Input attribute is a constrained
discriminated subtype, then check each constrained discriminant value
against the corresponding value read from the stream.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178453 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb
gcc/ada/exp_strm.adb
gcc/ada/lib-xref.adb