]> gcc.gnu.org Git - gcc.git/commit
[Ada] Streamline implementation of Has_Compatible_Representation
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 20 Mar 2022 17:01:04 +0000 (18:01 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:42 +0000 (08:25 +0000)
commite2f7d58cda63c8764b0c55f13ddee3c9b114182e
tree473534785c8ff3ea06edcb494ac50c1ce07aba80
parent87a655842470b3f764f6809206d1236227c315d3
[Ada] Streamline implementation of Has_Compatible_Representation

The predicate is only concerned with the internal representation of types
and this representation is shared by the subtypes of a given type, so the
implementation can directly look into the (implementation) base types.

No functional changes.

gcc/ada/

* sem_ch13.ads (Has_Compatible_Representation): Minor tweaks.
* sem_ch13.adb (Has_Compatible_Representation): Look directly into
the (implementation) base types and simplifiy accordingly.
* exp_ch5.adb (Change_Of_Representation): Adjust.
* exp_ch6.adb (Expand_Actuals): Likewise.
gcc/ada/exp_ch5.adb
gcc/ada/exp_ch6.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch13.ads
This page took 0.064213 seconds and 5 git commands to generate.