[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH 2/3] xen/macros: Drop alternative definition of BUILD_BUG_ON(_ZERO)? for old GCC
On Thu, Aug 14, 2025, 10:08 Jan Beulich <jbeulich@xxxxxxxx> wrote: On 13.08.2025 21:12, nicola.vetrini@xxxxxxxxx wrote: Some features that are part of the C99 standard are accepted as extensions in C90 mode, and some features that are part of the C11 standard are accepted as extensions in C90 and C99 modes. Use of the -std options listed above disables these extensions where they conflict with the C standard version selected If my reading is correct then this paragraph gives them the leeway needed to use it even in c89, except maybe with -pedantic
I can check with my colleagues, but I suspect this is not documented as an extension by GCC because it's not one in C11, and gcc12 supports all(?) of C11, therefore it is an extension only with respect to certain conditions, which GCC does not use as a category in their docs, but we keep track of what is an extension and what is not, given the CU standard selected.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |