This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/50865] Invalid code generation for INT64_MIN % 1 on x86_64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865

Jaak <jaak.randmets at cyber dot ee> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaak.randmets at cyber dot
                   |                            |ee

--- Comment #3 from Jaak <jaak.randmets at cyber dot ee> 2011-10-25 15:14:00 UTC ---
(In reply to comment #2)
> What do you think is wrong?  C1X makes explicit what was intended before 
> then: that both a/b and a%b have undefined behavior if the quotient is not 
> representable.  (See bug 30484 for more discussion; the only bug is that 
> with -fwrapv this should reliably give 0.)

In all 4 cases the quotient is representable and should evaluate to the result
of "INT64_MIN % 1".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]