[cfe-dev] How clang compares with gcc on security hardening ?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 20 14:29:05 PST 2019


On Tue, Feb 19, 2019 at 09:47:46PM +0000, via cfe-dev wrote:
> -D_FORTIFY_SOURCE=2
> AFAICT, Clang supports what is needed by this.

There are a couple of things that can be implemented nicer with more
support in the backend, pure macros and a few inline function tricks get
you very far.

Joerg



More information about the cfe-dev mailing list