[Bug target/123511] ICE: in emit_library_call_value_1, at calls.cc:4380 with -fcommon and SSO with packed struct and complex short

law at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 13 15:29:32 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123511

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Specific to the storage order code and paths through the libcall code.

Essentially we have a DImode argument, but tried to call __bswapsi2 in libgcc
which expected an SImode argument.  That leads to the abort.  It's a real bug,
but pretty narrow, especially since it'll go away if the target has swap insns
(as RISC-V does with the B extension enabled).  Pushing this to P4.


More information about the Gcc-bugs mailing list