2017-04-28 Hristian Kirtchev <kirtchev@adacore.com>
commit760732e434d89dcbdedbf74777ad88bd3f5e51f5
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2017 13:29:34 +0000 (28 13:29 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2017 13:29:34 +0000 (28 13:29 +0000)
tree6cf1125d55a0caf562a9bd8cb67dafbdf27ec95c
parentbe1bb0b1bb54d5b11bf8206fff186eed1876d0a3
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247384 138bc75d-0d04-0410-961f-82ee72b054a4
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