2012-03-19 Hristian Kirtchev <kirtchev@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2012 16:29:27 +0000 (16:29 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2012 16:29:27 +0000 (16:29 +0000)
commiteede3b44e26f5f2c6505580f999f59802f6cd48c
treea03face93f0687dec95d67ec03cef5955cc2aca5
parentefe1035c41d7bb8a580b3153e8d5e4ceeab1013f
2012-03-19  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch3.adb (Get_Discriminant_Value): Instead of looking
at the immediate correcponsing discriminant, traverse a
potential chain of discriminants produced by type derivations.
(Root_Corresponding_Discriminant): Traverse a chain of inherited
discriminants and return the topmost discriminant.

2012-03-19  Bob Duff  <duff@adacore.com>

* debug.adb: Minor comment change.
* gnat_ugn.texi: Update documentation for elaboration regarding
indirect calls.

2012-03-19  Gary Dismukes  <dismukes@adacore.com>

* exp_ch3.adb (Expand_N_Object_Declaration): In
the case of an object of a class-wide interface type, where the
declaration is rewritten as a renaming, call Set_Debug_Info_Needed
on the renaming entity so that Materialize_Entity will be
set. Also, change existing call (for other than interface cases)
to call Set_Debug_Info_Needed rather than Set_Needs_Debug_Info
(as specified for that flag).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185526 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/debug.adb
gcc/ada/exp_ch3.adb
gcc/ada/gnat_ugn.texi
gcc/ada/sem_ch3.adb