https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108208
--- Comment #10 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- (In reply to Segher Boessenkool from comment #9) > (In reply to John Paul Adrian Glaubitz from comment #8) > > (In reply to Segher Boessenkool from comment #7) > > > This PR is for the sysv ABI, while most discussion was about the "ELFv1" > > > ABI. > > > > Doesn't the subject clearly mention "powerpc-unknown-linux-gnu"? > > Yes. And most of the discussion (via the gentoo link) is about > powerpc64-linux. > > So things were confusing, for me at least. OK, yeah. That's confusing. I haven't seen any issues on 64-bit targets. > > I am trying -O3 now. > > That almost always runs out of space easier, not less easily. O3 prioritises > possible speed wins over anything else (*possible* speed wins). This actually worked for me and allowed me to build an unregisterised GHC compiler. So, thanks for the hint! > > > If you get an error at line 577996 of a source file, changes are your code > > > is just > > > completely unreasonably large, esp. on a smaller target like this :-) > > > > I understand. But it's not always possible to change the code size, > > especially when the code is not mine but some random upstream code. > > > > What I don't understand is that other 32-bit architectures don't seem to be > > affected. For example, hppa-unknown-linux-gnu is not affected. > > None of the HPPA ABIs are affected by peculiarities of a particular PowerPC > ABI. OK, I see. > The bug report does noty give enough information to see what is really going > on, > so I have no further advice. Your pointer towards -O3 did the trick, so no worries!