[cfe-dev] More verbose -mspeculative-load-hardening

milsegv via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 22 07:12:17 PDT 2020


Hello everyone,

It may not be the best place to ask this but I found nothing on the internet about it.
I'm working on Spectre V1 detection and stumbled upon the mitigation provided by clang, the "-mspeculative-load-hardening" option. I found it really interesting, and my question is the following: is there a way to tweak the compiler to print a message whenever it applies the mitigation, telling the user at which line of its code it applied the patch ?
I have no idea of the difficulty of such a feature, but I'm ready to learn how to do it myself if anybody has time to tell me how to !

Thanks for any help,
milsegv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200422/29e053e6/attachment.html>


More information about the cfe-dev mailing list