[PATCH] D57918: Add an attribute that causes clang to emit fortified calls to C stdlib functions
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 7 11:37:04 PST 2019
erik.pilkington created this revision.
erik.pilkington added reviewers: aaron.ballman, rjmccall, eli.friedman.
Herald added subscribers: dexonsmith, jkorous.
Herald added a project: clang.
This attribute applies to declarations of C stdlib functions (sprintf, memcpy...) that have known fortified variants (__sprintf_chk, __memcpy_chk, ...). When applied, clang will emit calls to the fortified variant functions. Without this attribute, its impossible to write `gnu_inline`-style wrappers to the variadic functions because we don't support `__builtin_va_arg_pack`, and don't intend to (see https://reviews.llvm.org/D57635).
Thanks for taking a look!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22377 bytes
Desc: not available
More information about the cfe-commits