[Bug target/94986] missing diagnostic on ARM thumb2 compilation with -pg when using r7 in inline asm
ndesaulniers at google dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 3 17:16:04 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94986
--- Comment #4 from Nick Desaulniers <ndesaulniers at google dot com> ---
(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).
>
> 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).
Should GCC change this for aaarch32 then (rather than closing the bug)?
More information about the Gcc-bugs
mailing list