Re: [PATCH] ARC: avoid unwanted gcc optimizations in atomic operations

2023-08-15 Thread Vineet Gupta
On 8/15/23 08:11, pavel.koz...@synopsys.com wrote: From: Pavel Kozlov Notify a compiler about write operations and prevent unwanted optimizations. Add the "memory" clobber to the clobber list. An obvious problem with unwanted compiler optimizations appeared after the cpumask optimization

[PATCH] ARC: avoid unwanted gcc optimizations in atomic operations

2023-08-15 Thread Pavel . Kozlov
From: Pavel Kozlov Notify a compiler about write operations and prevent unwanted optimizations. Add the "memory" clobber to the clobber list. An obvious problem with unwanted compiler optimizations appeared after the cpumask optimization commit 596ff4a09b89 ("cpumask: re-introduce