r273343 - in /trunk/gcc/ada: ChangeLog sem_util...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Wed Jul 10 09:02:00 GMT 2019


Author: pmderodat
Date: Wed Jul 10 09:02:12 2019
New Revision: 273343

URL: https://gcc.gnu.org/viewcvs?rev=273343&root=gcc&view=rev
Log:
[Ada] Entity names are not unique

This patch updates the Unique_Name procedure in order to prefix the
string "ada___" to child units that have a nested subprogram or package,
so that they do not clash with a parent package of the same name.

This is for GNATprove only and does not affect regular compilation.

2019-07-10  Simon Buist  <buist@adacore.com>

gcc/ada/

	* sem_util.ads (Child_Prefix): New constant.
	* sem_util.adb (Unique_Name): Add a special prefix to child
	units that have a nested subprogram or package.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/sem_util.adb
    trunk/gcc/ada/sem_util.ads



More information about the Gcc-cvs mailing list