[Bug c/107405] [13 Regression] enum change causing Linux kernel to fail to build due to Linux depending on old behavior
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 21 18:10:22 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107405
--- Comment #17 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Sat, 19 Nov 2022, macro at orcam dot me.uk via Gcc-bugs wrote:
> If in older C standard versions such enums are invalid, then I think
> this should be a hard error rather than a silent ABI change for the code
> produced. Not all code out there will have sanity checks such as the
There is no ABI change. The size of the enum type does not change. What
changes is the type given to enum constants in such an enum, if the value
of the enum constant fits in int (now all enum constants in such an enum
have the enum type rather than only those outside the range of int having
the enum type).
More information about the Gcc-bugs
mailing list