[Bug tree-optimization/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2011-10-25 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 --- Comment #10 from joseph at codesourcery dot com 2011-10-25 17:13:51 UTC --- On Tue, 25 Oct 2011, jaak at ristioja dot ee wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 > > --- Comment #9 from Jaak Ristioja 2011-10-25 > 16:37:48

[Bug tree-optimization/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2011-10-25 Thread jaak at ristioja dot ee
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 --- Comment #9 from Jaak Ristioja 2011-10-25 16:37:48 UTC --- (In reply to comment #8) > Well, they are equivalent where they are both defined, or if you apply C99 > rules to infinite-precision integers. The problem here is that INT_MIN % > -1

[Bug tree-optimization/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2011-10-25 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 --- Comment #8 from joseph at codesourcery dot com 2011-10-25 16:18:12 UTC --- On Tue, 25 Oct 2011, jaak at ristioja dot ee wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 > > --- Comment #7 from Jaak Ristioja 2011-10-25 > 16:08:19

[Bug tree-optimization/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2011-10-25 Thread jaak at ristioja dot ee
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 --- Comment #7 from Jaak Ristioja 2011-10-25 16:08:19 UTC --- (In reply to comment #6) > /* X % -Y is the same as X % Y. */ > (fold-const.c:fold_binary_loc) would probably be what's wrong here. On the other hand https://www.securecoding.c

[Bug tree-optimization/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2011-10-25 Thread jsm28 at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 Joseph S. Myers changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIRM