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

--- Comment #3 from Gabriel Marcano <gabemarcano at yahoo dot com> ---
Created attachment 61569
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61569&action=edit
msp430_enforce_register_pair_alignment.patch

This is a patch I made that forces GCC to only use even registers in SImode,
which enforces spacing for 32-bit register pairs. With this I'm able to build
libstdc++ with GCC 15.1.0. That said, I don't know GCC well enough to know what
possible side effects this will have outside of limiting register selection in
SImode, if there is any side effect.

The MSP430 ABI doesn't require even alignment of 32-bit register pairs, but I
can't come up with a way to tell GCC that other than by enforcing some kind of
alignment.

Reply via email to