Aras Pranckevičius is a user on mastodon.gamedev.place. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Aras Pranckevičius @aras

"Retpoline", an optional compiler flag to deal with Spectre attack support.google.com/faqs/answer. Landing to llvm/gcc as we speak (e.g. reviews.llvm.org/D41723).

Virtual calls, as well as switch statements etc., are about to get more expensive.

@aras Positive thought: Maybe this leads to more elegant code and stuff!

Seriously, what's the positive possible outcome?

@SuperLeo well, as Ryg pointed out on twitter, this particular flag is not needed for majority of code. Only for kernels, VM hypervisors, _maybe_ crypto stuff.

@aras Why would you want to use them though ? does your process need the protection from an inprocess sandbox reading the memory ?

@bartwe yeah indeed, majority of people won't need that flag.