[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
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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev