https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86715
Nicholas Krause <xerofoify at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org, | |xerofoify at gmail dot com --- Comment #1 from Nicholas Krause <xerofoify at gmail dot com> --- Hi, This does not seem to be happening in the middle end but in RTL expand. I've tried on x86_64 trunk and now powerpc. Seems to only happen on PowerPC now as seen here: test.cpp: In function ‘int main(int, char**)’: test.cpp:33:23: sorry, unimplemented: passing too large argument on stack 33 | result = mulm(m1, m2); | ^ during RTL pass: expand g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. I'm not aware of stack size limitations on Power so I'm CCed the maintainer to take a look. Not sure if this occurs on other architectures in expand like ARM as well. Segher would you please take a look at this for me.