Re: [PING] Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2024-02-28 Thread Jason Merrill
On 2/22/24 03:51, Torbjorn SVENSSON wrote: Ping! Hmm, I'm somewhat reluctant to backport a significant behavior change like this just to silence a testsuite failure, even though I think the change is correct. Maybe just xfail the tests for GCC 13? Jason On 2024-02-07 17:19, Torbjorn SVEN

[PING] Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2024-02-22 Thread Torbjorn SVENSSON
Ping! Kind regards, Torbjörn On 2024-02-07 17:19, Torbjorn SVENSSON wrote: Hi, Is it okay to backport b7e4a4c626eeeb32c291d5bbbaa148c5081b6bfd to releases/gcc-13? Without this backport, I see these failures on arm-none-eabi: FAIL: gcc.dg/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_

Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2024-02-07 Thread Torbjorn SVENSSON
Hi, Is it okay to backport b7e4a4c626eeeb32c291d5bbbaa148c5081b6bfd to releases/gcc-13? Without this backport, I see these failures on arm-none-eabi: FAIL: gcc.dg/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c (test for excess errors) FAIL: gcc.dg/analyzer/null-deref-pr108251-

Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2023-12-10 Thread Richard Biener
On Wed, Nov 22, 2023 at 11:45 PM Jason Merrill wrote: > > Tested x86_64-pc-linux-gnu, OK for trunk? OK > -- 8< -- > > -Waddress-of-packed-member, in addition to the documented warning about > taking the address of a packed member, also warns about casting from > a pointer to a TYPE_PACKED type t

Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2023-12-08 Thread Alexandre Oliva
On Nov 22, 2023, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, OK for trunk? FYI, Linaro's regression tester let me know that my patch reversal, that expected this patch to go in instead, caused two "regressions". https://linaro.atlassian.net/browse/GNU-1067 -- Alexandre Oliva, happy hack

[PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2023-11-22 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, OK for trunk? -- 8< -- -Waddress-of-packed-member, in addition to the documented warning about taking the address of a packed member, also warns about casting from a pointer to a TYPE_PACKED type to a pointer to a type with greater alignment. This wrongly warns if the