Re: [C] Warn on type punning that toggles scalar storage order

2021-05-26 Thread Eric Botcazou
> OK Thanks. I have also installed the attached tweak to the documentation. PR c/100653 * doc/extend.texi (scalar_storage_order): Rephrase slightly. -- Eric Botcazoudiff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 3ddeb0dee3a..bfe9c21bddf 100644 --- a/gcc/doc/exten

Re: [C] Warn on type punning that toggles scalar storage order

2021-05-26 Thread Jeff Law via Gcc-patches
On 5/26/2021 8:12 AM, Eric Botcazou wrote: Hi, As documented in the manual, we do not support type punning that toggles the scalar storage order, so this adds a warning for the simple case of unions. Tested on x86-64/Linux, OK for the mainline? 2021-05-26 Eric Botcazou PR c/100

[C] Warn on type punning that toggles scalar storage order

2021-05-26 Thread Eric Botcazou
Hi, As documented in the manual, we do not support type punning that toggles the scalar storage order, so this adds a warning for the simple case of unions. Tested on x86-64/Linux, OK for the mainline? 2021-05-26 Eric Botcazou PR c/100653 * c-decl.c (finish_struct): Warn for