Re: [PATCH v10 25/27] x86: enable initial Rust support

From: Linus Torvalds
Date: Fri Oct 13 2023 - 15:22:25 EST


On Fri, 13 Oct 2023 at 12:01, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
>
> Transparent unions have been standard C since C99.

Ahh, I didn't realize they made it into the standard.

In gcc, they've been usable for a lot longer (ie --std=gnu89 certainly
is happy with them), but the kernel never really picked up on them.

I think they've mainly been used by glibc for a couple of functions
that can take a couple of different types without complaining.

Linus