Re: [PATCH] c-family: check qualifiers of arguments to __atomic built-ins (PR 95378)

2020-06-17 Thread Joseph Myers
On Tue, 16 Jun 2020, Jonathan Wakely via Gcc-patches wrote: > Currently the __atomic_{load,store,exchange,compare_exchange} built-ins > will happily store values through pointers to const, or use pointers to > volatile as the input and output arguments. This patch ensures that any > pointer that

[PATCH] c-family: check qualifiers of arguments to __atomic built-ins (PR 95378)

2020-06-16 Thread Jonathan Wakely via Gcc-patches
Currently the __atomic_{load,store,exchange,compare_exchange} built-ins will happily store values through pointers to const, or use pointers to volatile as the input and output arguments. This patch ensures that any pointer that will be written through does not point to a const object, and only