This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 01/11] Add __builtin_speculation_safe_value
On 07/27/2018 08:32 AM, Richard Earnshaw (lists) wrote:
The intention is to allow pointer to anything.
Oh, the speculation safe fetch is of the pointer itself, not the thing
being pointed to. I'd missed that. I'm not sure I understand why that
needs special casing down to the expander (why can't the resolver figure
the mode?), but you're the expert in that kind of stuff.
I presume resolve_overloaded_builtin already works correctly with
template instantiations, but a templatatized testcase would be nice --
shout if you'd like help constructing one.
added to todo list.