Fangrui Song
fed564432c
[Sema] atomic_compare_exchange: check failure memory order ( #74959 )
...
For
`__atomic_compare_exchange{,_n}/__c11_atomic_compare_exchange_{strong,weak}`,
GCC checks both the success memory order and the failure memory order
under the default -Winvalid-memory-model ("memory model" is confusing
here and "memory order" is much more common in the atomic context).
* The failure memory order, if a constant, must be one of
relaxed/consume/acquire/seq_cst.
Clang checks just the success memory order under the default
-Watomic-memory-ordering. This patch checks the failure memory order.
2023-12-14 11:03:28 -08:00
..
2023-10-17 10:00:32 -04:00
2023-08-07 14:35:02 -05:00
2022-01-04 16:09:26 -08:00
2023-05-27 13:33:50 +08:00
2023-09-07 23:18:30 -04:00
2021-06-01 20:45:10 -04:00
2023-12-14 11:03:28 -08:00
2022-02-07 09:25:01 -05:00
2022-02-07 09:25:01 -05:00
2021-01-22 11:43:58 -05:00
2023-05-27 13:33:50 +08:00
2021-03-25 15:25:29 -04:00
2021-10-15 15:35:52 -06:00
2023-05-19 10:59:36 -07:00
2023-11-22 21:20:53 -05:00
2023-10-20 13:10:03 -04:00
2022-01-28 16:04:52 -05:00
2022-02-15 15:15:55 -05:00
2021-06-01 20:45:10 -04:00
2023-11-22 21:20:53 -05:00
2021-05-12 12:48:47 -07:00
2021-06-23 23:39:59 -04:00
2021-02-04 18:04:54 -05:00
2022-12-16 11:38:51 +00:00
2023-10-17 10:00:32 -04:00
2023-08-01 11:29:19 -04:00
2023-09-07 23:18:30 -04:00
2021-06-01 20:45:10 -04:00
2023-09-07 23:18:30 -04:00
2023-11-09 20:36:38 -05:00
2023-11-22 21:20:53 -05:00
2023-11-22 21:20:53 -05:00
2023-11-22 21:20:53 -05:00
2023-11-22 21:20:53 -05:00
2021-09-16 11:18:12 -07:00
2021-09-08 13:45:26 -04:00
2023-09-29 08:39:31 +02:00
2023-09-29 08:39:31 +02:00
2023-05-23 08:29:52 +02:00
2021-01-22 11:43:58 -05:00
2023-08-08 09:50:24 -04:00
2023-12-13 08:59:41 +00:00
2023-10-20 13:10:03 -04:00
2022-05-11 06:52:21 -04:00
2022-04-19 14:28:03 -04:00
2023-06-15 12:41:09 +05:30
2022-03-31 13:49:12 -07:00
2022-01-04 16:09:26 -08:00
2021-06-01 21:28:41 -04:00
2023-08-08 17:39:01 -04:00
2023-12-01 16:24:01 -05:00
2021-01-22 11:43:58 -05:00
2021-01-21 10:48:07 -08:00
2023-10-20 13:10:03 -04:00
2023-09-07 23:18:30 -04:00