[gcc/devel/rust/master] Merge #1435
Thomas Schwinge
tschwinge@gcc.gnu.org
Sat Aug 6 12:10:36 GMT 2022
https://gcc.gnu.org/g:8725e324aad3eac0df074e5f0a494b5e3f332a31
commit 8725e324aad3eac0df074e5f0a494b5e3f332a31
Merge: a39108dea1d f70783d0633
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Fri Aug 5 12:42:24 2022 +0000
Merge #1435
1435: Update the type hasher to stop duplication of aggregate types r=philberty a=philberty
The hasher we ported was always calling TYPE_HASH which ends up with
DECL_UID which is geneated causing aggregate types keep having a unique
hash which ends up confusing the middle end as two copy's of the same
aggegate type ends up making GCC think there is some kind of type
conversion required here.
Fixes #1434
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/backend/rust-compile-context.cc | 13 ++++--
gcc/testsuite/rust/compile/torture/issue-1434.rs | 53 ++++++++++++++++++++++++
2 files changed, 63 insertions(+), 3 deletions(-)
More information about the Gcc-cvs
mailing list