[Bug c/91918] Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread mq at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91918 --- Comment #4 from Maria Matejka --- This bug applies also on v9.2.0.

[Bug c/91918] Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread mq at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91918 --- Comment #2 from Maria Matejka --- Created attachment 46952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46952=edit generated assembler code

[Bug c/91918] Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread mq at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91918 --- Comment #1 from Maria Matejka --- Created attachment 46951 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46951=edit preprocessed source file

[Bug c/91918] Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread mq at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91918 --- Comment #3 from Maria Matejka --- Created attachment 46953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46953=edit Compiler output on gcc -v -save-temps

[Bug c/91918] New: Const pointer argument to atomic_compare_exchange doesn't cause an error.

2019-09-26 Thread mq at ucw dot cz
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mq at ucw dot cz Target Milestone: --- Passing second argument (desired) to atomic_compare_exchange as const pointer doesn'ลง cause an error and silently segfaults, as in this code