exp_ch6.adb (Expand_N_Extended_Return_Statement): Use New_Copy_Tree instead of Reloca...
authorHristian Kirtchev <kirtchev@adacore.com>
Fri, 28 Apr 2017 13:29:34 +0000 (13:29 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 28 Apr 2017 13:29:34 +0000 (15:29 +0200)
commitd5fa5335e2171cbfd732a9acba9f22f0df784913
tree6cf1125d55a0caf562a9bd8cb67dafbdf27ec95c
parentef952fd5e9cfb61e2be7be053fc0d26f87c75040
exp_ch6.adb (Expand_N_Extended_Return_Statement): Use New_Copy_Tree instead of Relocate_Node as any subsequent copies of the...

2017-04-28  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch6.adb (Expand_N_Extended_Return_Statement): Use
New_Copy_Tree instead of Relocate_Node as any subsequent copies
of the relocated node will have mangled Parent pointers.
* sem_util.adb (Build_NCT_Hash_Tables): Reset both hash
tables used in conjunction with entity and itype replication.
(Visit_Entity): Rewrite the restriction on which entities
require duplication.  The restriction now includes all types.

2017-04-28  Hristian Kirtchev  <kirtchev@adacore.com>

* a-cofuse.ads, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfinve.adb,
a-cfinve.ads, a-cforma.adb, a-cforma.ads, a-cofuma.adb, a-cofuma.ads,
a-cfhama.adb, a-cfhama.ads, a-cforse.adb: Minor reformatting and code
cleanups.

From-SVN: r247384
16 files changed:
gcc/ada/ChangeLog
gcc/ada/a-cfdlli.ads
gcc/ada/a-cfhama.adb
gcc/ada/a-cfhama.ads
gcc/ada/a-cfhase.adb
gcc/ada/a-cfhase.ads
gcc/ada/a-cfinve.adb
gcc/ada/a-cfinve.ads
gcc/ada/a-cforma.adb
gcc/ada/a-cforma.ads
gcc/ada/a-cforse.adb
gcc/ada/a-cofuma.adb
gcc/ada/a-cofuma.ads
gcc/ada/a-cofuse.ads
gcc/ada/exp_ch6.adb
gcc/ada/sem_util.adb