[PATCH] D92657: Fix interaction between clang and some inline builtins from glibc under _FORTIFY_SOURCE

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 8 00:36:03 PST 2020


serge-sans-paille updated this revision to Diff 310101.
serge-sans-paille edited the summary of this revision.
serge-sans-paille added a comment.

Updated approach, much less costly: match the pattern of functions forwarding to self, as detecting if they're recursive doesn't match the reality of inline builtins.
The rational could be that if it's doing anything other than forwarding to self, then it's there on purpose and we shouldn't skip it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92657/new/

https://reviews.llvm.org/D92657

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/test/CodeGen/memmove-always-inline-definition-used.c
  llvm/lib/Analysis/InlineCost.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92657.310101.patch
Type: text/x-patch
Size: 7604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201208/2abbff0d/attachment.bin>


More information about the llvm-commits mailing list