sem_ch8.adb (Available_Subtype): Optimization in Find_Selected_Component...
authorEd Schonberg <schonberg@adacore.com>
Mon, 2 Mar 2015 09:07:01 +0000 (09:07 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 2 Mar 2015 09:07:01 +0000 (10:07 +0100)
commit95e00a3a825cb27fb9b4db7007a94462aa311561
tree8fc6422a22f5d6a3f5cba63d37d1c4fb31121b1e
parentc4c0f336bc3bd0761ccac74d297dd45d45e299fe
sem_ch8.adb (Available_Subtype): Optimization in Find_Selected_Component...

2015-03-02  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8.adb (Available_Subtype): Optimization in
Find_Selected_Component: when safe, use existing subtype of
array component, possibly discriminant-dependent, rather than
creating new subtype declaration for it. In this fashion different
occurrences of the component have the same subtype, rather than
just equivalent ones. Simplifies value tracing in GNATProve.

From-SVN: r221100
gcc/ada/ChangeLog
gcc/ada/sem_ch8.adb