<div>Hello everyone,<br></div><div><br></div><div>It may not be the best place to ask this but I found nothing on the internet about it. <br></div><div>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 ?<br></div><div>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 !<br></div><div><br></div><div>Thanks for any help,<br></div><div>milsegv<br></div>