[cfe-dev] Is -fstack-protector supported?

Sean McBride via cfe-dev cfe-dev at lists.llvm.org
Tue Jan 23 08:52:13 PST 2018


Hi all,

Running "clang --help | grep stack-protector" suggests that clang does support -fstack-protector, but I find no mention of it here:

<https://clang.llvm.org/docs/UsersManual.html>

Is the flag supported and ignored for gcc compatibility, or does it work and is just not documented in the manual?

Assuming it is supported, does it catch anything that address sanitizer doesn't?

Thanks,

Sean





More information about the cfe-dev mailing list