[Bug middle-end/104800] reodering of potentially trapping operations and volatile stores

2022-03-07 Thread paulmckrcu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104800 --- Comment #7 from Paul McKenney --- (In reply to Richard Biener from comment #6) > Generally GCCs middle-end considers volatile stores (or loads) to not have > any side-effects that are not visible in the IL. That includes (synchronous) >

[Bug middle-end/104800] reodering of potentially trapping operations and volatile stores

2022-03-05 Thread paulmckrcu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104800 Paul McKenney changed: What|Removed |Added CC||paulmckrcu at gmail dot com

[Bug target/96327] Inefficient increment through pointer to volatile on x86

2020-07-30 Thread paulmckrcu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96327 --- Comment #6 from Paul McKenney --- (In reply to Marc Glisse from comment #5) > I don't think bug 3506 has been fixed (its status seems wrong to me). But > don't worry, there are several other duplicates that still have status NEW > (bug 50677

[Bug target/96327] Inefficient increment through pointer to volatile on x86

2020-07-26 Thread paulmckrcu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96327 --- Comment #4 from Paul McKenney --- Bug 3506 has since been fixed, at least for the example shown in this bug report, as you can see if you look at the godbolt, which shows that both compilers generate a single addl instruction, which is

[Bug c/96327] Inefficient increment through pointer to volatile on x86

2020-07-26 Thread paulmckrcu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96327 --- Comment #1 from Paul McKenney --- This manifests on GCC trunk (see the godbolt.org URL), but was first noted in gcc version 7.5.0. This is specific to x86, but might apply to any other architecture that provides increment-memory

[Bug c/96327] New: Inefficient increment through pointer to volatile on x86

2020-07-26 Thread paulmckrcu at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: paulmckrcu at gmail dot com Target Milestone: --- Although the code generation for increment (++, --) through a pointer to volatile has improved greatly over the past 15 years, there is a case