[PATCH 03/34] rs6000: Add the rest of the [altivec] stanza to the builtins file

Segher Boessenkool segher@kernel.crashing.org
Tue Aug 10 13:40:14 GMT 2021


On Tue, Aug 10, 2021 at 08:02:24AM -0500, Bill Schmidt wrote:
> The whole point is that this data type is only used for interfaces, as 
> shown in the example code.  Nobody wants to define const void as 
> anything.  The const serves only as a contract that the pointed-to 
> object, no matter what it is cast to, will not be modified.

So it is just documentation, nothing to do with overloading?  Any cast
(implicit as well!) will give new qualifiers, not just a new type.  So I
still do not see the point here.

I'll just read it as "void *" :-)


Segher


More information about the Gcc-patches mailing list