https://bugs.llvm.org/show_bug.cgi?id=44934
Bug ID: 44934
Summary: frame pointer should be omitted for -pg -mfentry
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: ndesaulni...@google.com
CC: isanb...@gmail.com, lloz...@chromium.org,
llvm-bugs@lists.llvm.org, srhi...@google.com
// foo.c
void foo(void){}
$ gcc foo.c -O2 -pg -mfentry
foo:
1: call __fentry__
ret
$ clang foo.c -O2 -pg -mfentry
foo: # @foo
# %bb.0:
call __fentry__
push rbp
mov rbp, rsp
pop rbp
ret
Maybe a bug related to `-pg`, because if I explicitly add
`-fomit-frame-pointer` I get an error that its incompatible with `-pg`.
https://reviews.llvm.org/D28000 seems to insert the __fentry__ call, but
doesn't make any changes during prologue/epilogue insertion.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs