[Bug c++/105884] A possible optimization bug when uint64_t is used with -O2/-O3.

2022-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105884 --- Comment #3 from Jonathan Wakely --- I commented upstream: https://github.com/bol-van/zapret/commit/9402cd2cf0a16352a3401f7bce1a894bf131138b#r75598628

[Bug c++/105884] A possible optimization bug when uint64_t is used with -O2/-O3.

2022-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105884 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME

[Bug c++/105884] A possible optimization bug when uint64_t is used with -O2/-O3.

2022-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105884 --- Comment #1 from Andrew Pinski --- I am 99% sure this is an aliasing issue with the code. Try -fno-strict-aliasing.