]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid changing type in the type_hash_canon hash
authorRichard Biener <rguenther@suse.de>
Fri, 3 May 2024 09:48:07 +0000 (11:48 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 3 May 2024 11:01:10 +0000 (13:01 +0200)
commit7a212ac678e13e0df5da2d090144b246a1262b64
treedcdc4f360787d7c8a3aa7e40aba335f48e1ff4b4
parentfe40d525619eee9c2821126390df75068df4773a
Avoid changing type in the type_hash_canon hash

When building a type and type_hash_canon returns an existing type
avoid changing it, in particular its TYPE_CANONICAL.

PR middle-end/114931
* tree.cc (build_array_type_1): Return early when type_hash_canon
returned an older existing type.
(build_function_type): Likewise.
(build_method_type_directly): Likewise.
(build_offset_type): Likewise.
gcc/tree.cc