[Bug driver/69690] New: -pg -fomit-frame-pointer fails with error even if -pg does not depend on frame pointers
nsz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 12:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69690
Bug ID: 69690
Summary: -pg -fomit-frame-pointer fails with error even if -pg
does not depend on frame pointers
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: nsz at gcc dot gnu.org
Target Milestone: ---
common cc1 options in gcc/gcc.c has
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}"
but at least on arm and aarch64 -pg does not depend on the frame pointer.
in fact there is no frame pointer by default and -pg works fine,
however requesting -fomit-frame-pointer explicitly fails with
arm-none-linux-gnueabihf-gcc: error: -pg and -fomit-frame-pointer are
incompatible
this logic seems to be there since ancient times:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=11ce684d779b50cf49fa1a9216e55c2dca06b4fc
More information about the Gcc-bugs
mailing list