[llvm-bugs] [Bug 44934] New: frame pointer should be omitted for -pg -mfentry
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 16 18:32:27 PST 2020
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: unassignedbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: isanbard at gmail.com, llozano at chromium.org,
llvm-bugs at lists.llvm.org, srhines at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200217/072fde58/attachment.html>
More information about the llvm-bugs
mailing list