Fix incorrect scalar storage order handling
commit90aea3e8d4f6119a9b666275b274bc4c251a7c91
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 12 May 2020 11:14:20 +0000 (12 13:14 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 12 May 2020 11:15:48 +0000 (12 13:15 +0200)
tree2617a3277265d8007a7c5c7a612fbcc5b5d0aff0
parent5e3c2d4b238f10e6e6db36810469483334d4bcb0
Fix incorrect scalar storage order handling

This fixes an oversight in the new canonicalization code for packable
types: it does not take into account the scalar storage order.

PR ada/95035
* gcc-interface/utils.c (packable_type_hasher::equal): Also compare
the scalar storage order.
(hash_packable_type): Also hash the scalar storage order.
(hash_pad_type): Likewise.
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c