[Bug c++/96594] Compiled code behaves differently with -O1 and -O0 on s390x

2020-08-12 Thread mitya57 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96594 --- Comment #4 from Dmitry Shachnev --- Thanks a lot for the fast response! Indeed, your suggestion works. It is counter-intuitive that you need a 64-bit variable to store a 32-bit value, but I can see the rationale (long is the only standard ty

[Bug c++/96594] Compiled code behaves differently with -O1 and -O0 on s390x

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96594 Jakub Jelinek changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/96594] Compiled code behaves differently with -O1 and -O0 on s390x

2020-08-12 Thread mitya57 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96594 --- Comment #2 from Dmitry Shachnev --- Created attachment 49052 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49052&action=edit Assembly dump with -O1

[Bug c++/96594] Compiled code behaves differently with -O1 and -O0 on s390x

2020-08-12 Thread mitya57 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96594 --- Comment #1 from Dmitry Shachnev --- Created attachment 49051 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49051&action=edit Assembly dump with -O0