https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79242
--- Comment #11 from Jozef Lawrynowicz <jozefl.gcc at gmail dot com> --- (In reply to Eric Gallager from comment #10) > (In reply to Jeffrey A. Law from comment #9) > > Author: law > > Date: Wed Feb 14 07:21:11 2018 > > New Revision: 257653 > > > > URL: https://gcc.gnu.org/viewcvs?rev=257653&root=gcc&view=rev > > Log: > > 2018-02-14 Jozef Lawrynowicz <jozefl....@gmail.com> > > > > PR target/79242 > > * machmode.def: Define a complex mode for PARTIAL_INT. > > * genmodes.c (complex_class): Return MODE_COMPLEX_INT for > > MODE_PARTIAL_INT. > > * doc/rtl.texi: Document CSPImode. > > * config/msp430/msp430.c (msp430_hard_regno_nregs): Add CPSImode > > handling. > > (msp430_hard_regno_nregs_with_padding): Likewise. > > > > PR target/79242 > > * gcc.target/msp430/pr79242.c: New test. > > > > Added: > > trunk/gcc/testsuite/gcc.target/msp430/pr79242.c > > Modified: > > trunk/gcc/ChangeLog > > trunk/gcc/config/msp430/msp430.c > > trunk/gcc/doc/rtl.texi > > trunk/gcc/genmodes.c > > trunk/gcc/machmode.def > > trunk/gcc/testsuite/ChangeLog > > Did this fix it? The patch is currently only on trunk, but after back-porting it to gcc-7-branch, GCC now builds successfully for the msp430-elf target. The original testcase also compiles successfully with the resulting toolchain. Trunk still doesn't build for msp430-elf though, due to Bug 84406.