Re: [PATCH] testsuite: Add -fno-short-enums to pr97315-1.C

2024-08-16 Thread Torbjorn SVENSSON
On 2024-08-16 16:37, Jakub Jelinek wrote: On Fri, Aug 16, 2024 at 04:15:10PM +0200, Torbjörn SVENSSON wrote: Ok for trunk and releases/gcc-14? -- The test case assumes that sizeof(tree_code) >= 2. On some targets, like Cortex-M on arm-none-eabi, -fshort-enums is enabled by default and in th

Re: [PATCH] testsuite: Add -fno-short-enums to pr97315-1.C

2024-08-16 Thread Jakub Jelinek
On Fri, Aug 16, 2024 at 04:15:10PM +0200, Torbjörn SVENSSON wrote: > Ok for trunk and releases/gcc-14? > > -- > > The test case assumes that sizeof(tree_code) >= 2. On some targets, like > Cortex-M on arm-none-eabi, -fshort-enums is enabled by default and in > that case, sizeof(tree_code) will be

[PATCH] testsuite: Add -fno-short-enums to pr97315-1.C

2024-08-16 Thread Torbjörn SVENSSON
Ok for trunk and releases/gcc-14? -- The test case assumes that sizeof(tree_code) >= 2. On some targets, like Cortex-M on arm-none-eabi, -fshort-enums is enabled by default and in that case, sizeof(tree_code) will be 1 and the following warning is emitted: .../pr97315-1.C:8:13: warning: width of