2008-05-20 Gary Dismukes <dismukes@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:45:27 +0000 (12:45 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:45:27 +0000 (12:45 +0000)
commitbec6b76240ef111dd57d7a11a89327ea1cd8f6b8
treec0c951398b320acd46e82831c203b69976e5d1d9
parentc5e6df315586eae0e10bd280332adc1f3de4faf9
2008-05-20  Gary Dismukes  <dismukes@adacore.com>
    Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch3.adb
(Expand_N_Object_Declaration): Correct the condition which triggers the
generation of a call to Displace when initializing a class-wide object.
(Build_Dcheck_Functions): Build discriminant-checking for null variants
when Frontend_Layout_On_Target is true to ensure that they're available
for calling when a record variant size function is built in Layout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135621 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/exp_ch3.adb