This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 01/11] Add __builtin_speculation_safe_value
On 27/07/18 13:11, Nathan Sidwell wrote:
> + if (!COMPLETE_TYPE_P (type))
> + goto incompatible;
> Are incomplete integral types a thing? (forward enum extension?)
I don't think so, at least not at the level of having an instance of
such a type (as opposed to a pointer to one). Enums, for example, might
be packed by default, so until the type is complete you don't know its
size or alignment.
Anyway, this bit of code is essentially lifted from sync_resolve_size.