https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94986
Wilco <wilco at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #3 from Wilco <wilco at gcc dot gnu.org> --- (In reply to nsz from comment #2) > on arm the -pg abi is > > func: > push {lr} > bl _gnu_mcount_nc > ... > > so no frame pointer is involved, -pg implying > -fno-omit-frame-pointer is a historical mistake i think > (because some targets required fp for -pg, but most don't). Right, so the claim that -pg implies -fno-omit-frame-pointer is wrong, and that means there is no bug in GCC. Looking at the latest docs, there is no mention of frame pointer for the -pg option, and neither does -fomit-frame-pointer discuss -pg. So this dependency must have been removed some time ago. > ideally r7 clobber would just work with -pg -fomit-frame-pointer. > the alloca problem is a separate issue (that r7 clobber may not > work with alloca). GCC correctly reports the error for that. So this can be closed then.