OSDN Git Service

2011-09-05 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2011 12:51:44 +0000 (12:51 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2011 12:51:44 +0000 (12:51 +0000)
commite2e9d70e382811e5896ba95b1eb4cac2d2f53ca3
tree648e1c76bb9dc26e7a49e9eb764b5c083e6a46e4
parent3d83581faf4eaf52c1cf52cc0d11cc7dd1264275
2011-09-05  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Analyze_Expression_Function): If the expression
function comes from source, indicate that so does its rewriting,
so it is compatible with any subsequent expansion of the
subprogram body (e.g. when it is a protected operation).
* sem_ch4.adb: minor reformatting

2011-09-05  Hristian Kirtchev  <kirtchev@adacore.com>

* lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
may lead to wrong ancestor package in the case of instantiated subunit
bodies. If a subunit is instantiated, follow the chain of instantiations
rather than the stub structure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178530 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/lib.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch6.adb