https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #9 from Ivan Bodrov ---
Created attachment 58598
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58598&action=edit
Minimal program to reproduce the issue (no condvar)
To further simplify the original code, the condition variabl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #8 from Ivan Bodrov ---
The 2nd example is only intended to show changes in code generation after the
fence is moved to the function that is visible, but is not inlined, which is
the cause of this issue. The code is not supposed to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #6 from Ivan Bodrov ---
Created attachment 58597
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58597&action=edit
Smaller, but non runnable example.
Full demo code for the above (can't be run, only shows code generation). Can
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #5 from Ivan Bodrov ---
Without the mutex threads would race for the first access to non-atomic
variable.
Seq-Cst ordering is only used to simplify the example, it can be relaxed to
acquire/release/relaxed for different operations.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #3 from Ivan Bodrov ---
Yes, but "wait" operation is not supposed to touch anything.
The example shows typical usage of condition variable, except "real" code
usually accesses data through some pointer, not as a static variable. Or
: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: securesneakers at gmail dot com
Target Milestone: ---
Created attachment 58595
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58595&action=edit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110184
--- Comment #3 from Ivan Bodrov ---
Created attachment 56646
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56646&action=edit
Fails to apply optimization for __atomic_fetch_and ZF-flag with separate
literals
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110184
Ivan Bodrov changed:
What|Removed |Added
CC||securesneakers at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83780
--- Comment #2 from Ivan Bodrov ---
I have reported the same bug for Clang:
https://bugs.llvm.org/show_bug.cgi?id=35902
Unlike GCC, Clang is also eager to generate unaligned "movaps" instructions,
crashing the program. Afaik GCC does not generat
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: securesneakers at gmail dot com
Target Milestone: ---
Created attachment 43091
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43091&action=edit
Minimal examp
10 matches
Mail list logo