]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix type compatibility for types with flexible array member 1/2 [PR113688,PR114713...
authorMartin Uecker <uecker@tugraz.at>
Mon, 9 Dec 2024 11:07:57 +0000 (12:07 +0100)
committerMartin Uecker <uecker@gcc.gnu.org>
Sun, 30 Mar 2025 09:56:06 +0000 (11:56 +0200)
commit450dc448eabaaf14a3401788028049b27991213c
tree8f215738f27d42026aeac480206eb27d1d27ed2c
parent056f2b11fdaacd793a27f700eb08a32b0a771962
Fix type compatibility for types with flexible array member 1/2 [PR113688,PR114713,PR117724]

Allow the TYPE_MODE of a type with an array as last member to differ from
another compatible type.

gcc/ChangeLog:
* tree.cc (gimple_canonical_types_compatible_p): Add exception.
(verify_type): Add exception.

gcc/lto/ChangeLog:
* lto-common.cc (hash_canonical_type): Add exception.

(cherry picked from commit 1f48225a0ddfaf74a229105343b22f3086c4b8cb)
gcc/lto/lto-common.cc
gcc/tree.cc