https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123623
Bug ID: 123623
Summary: Split out the extension that the kernel uses from
-fms-extensions
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
The kernel uses -fms-extensions get one specific extension (which is also part
of -fplan9-extension).
```
struct s1 {
int t;
};
struct s2 {
struct s1;
};
int f(struct s2 a)
{
return a.t;
}
```
It would be useful to split this out into its own option.
See thread at https://hachyderm.io/@kees/115896006860477202 .
Aaron Ballman agrees (but his reply is private) and says clang should do the
same.