Re: [pushed] aarch64: Tweak atomic-inst-cas.c options

2022-02-16 Thread Andrew Pinski via Gcc-patches
On Wed, Feb 16, 2022 at 2:25 AM Richard Sandiford via Gcc-patches wrote: > > atomic-inst-cas.c has code to skip __atomic_compare_exchange_n > calls for invalid memory orderings, but -Winvalid-memory-model > applies before the dead code is removed (which is the right > behaviour IMO). This patch t

[pushed] aarch64: Tweak atomic-inst-cas.c options

2022-02-16 Thread Richard Sandiford via Gcc-patches
atomic-inst-cas.c has code to skip __atomic_compare_exchange_n calls for invalid memory orderings, but -Winvalid-memory-model applies before the dead code is removed (which is the right behaviour IMO). This patch therefore suppresses the warning for this test. Tested on aarch64-linux-gnu & pushed