https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68701
--- Comment #12 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to henric from comment #11) > I have noted that the compilation works with any 2 out of the 3 gcc-flags! > > > gcc -finstrument-functions -ffixed-ebp a.c -> successfully compiles! > > gcc -m32 -ffixed-ebp a.c -> successfully compiles! > > gcc -m32 -finstrument-functions a.c -> successfully compiles! > > > gcc -m32 -finstrument-functions -ffixed-ebp a.c -> fails with internal error > > > Given that -ffixed-ebp works individually with both -finstrument-functions > and -m32, but not together, maybe it is tricky to error out on -ffixed-ebp, > not destroying something that already works? Please try adding -maccumulate-outgoing-args. Using this option, your code should always compile OK. > Btw, in the company that I work for (>100.000 employees worldwide), we have > legacy code that relies on -ffixed-ebp, so please don't be too aggressive > when if you decide to error out on compilation with -ffixed-ebp. The code *will* compile, but a warning that -maccumulate-outgoing-args was enabled to satisfy -ffixed-ebp will be emitted during compilation.