Revert "tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]"
authorMarek Polacek <polacek@redhat.com>
Mon, 4 May 2020 14:26:43 +0000 (10:26 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 4 May 2020 14:35:24 +0000 (10:35 -0400)
commit05be85b649173b10d0bf10255eb15275c2dcf509
tree62c616ef6bf58a7e256f7ea98a0107f0b54d9b91
parent367766f40a031ff064857681dc4da3309f0ce57d
Revert "tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]"

This reverts commit 6318fe77395fc0dd59419bc4d69cd06ac0158e54.

Revert:
2020-04-30  Marek Polacek  <polacek@redhat.com>

PR c++/94775
* tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
(check_aligned_type): Check if TYPE_USER_ALIGN match.
gcc/ChangeLog
gcc/testsuite/g++.dg/warn/Warray-bounds-10.C [deleted file]
gcc/tree.c