https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68701
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #4) > (In reply to Jakub Jelinek from comment #3) > > As main needs dynamic stack realignment, I wonder if we just shouldn't error > > out on trying to compile it with -ffixed-ebp. > > It is still possible to compile with -maccumulate-outgoing-args. Perhaps we > can error out with the advice that -ffixed-ebp requires -m-o-a option, as is > already the case with stack probing? Yeah. Or if neither -m{,no-}accumulate-outgoing-args is specified, perhaps turn that on automatically instead if -ffixed-ebp and only error out if explicit -mno-accumulate-outgoing-args?