SPARC alignment issue in LTO #43593
Labels
C-bug
Category: This is a bug.
O-SPARC
Target: SPARC processors
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The function
extract_bytecode_format_version()
inrustc_trans::back::lto
is consistently crashing with aSIGBUS
on SPARC when compiling Firefox. I'm seeingpos
set to 11, and the code generated for the coercion in theunsafe
statement isn't intelligent enough to deal with the lack of alignment.The reduced testcase is simple:
I can fix that with a
copy_from_slice()
:but I don't know if there's a more idiomatic way, and I don't know how best to make sure that on architectures that can handle the one-byte alignment, it skips the copy.
I suspect that
extract_compressed_bytecode_size_v1()
has a similar issue.The text was updated successfully, but these errors were encountered: