This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27116] [4.2 Regression] Incorrect integer division (wrong sign).
- From: "vincent at vinc17 dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Apr 2006 15:50:34 -0000
- Subject: [Bug c/27116] [4.2 Regression] Incorrect integer division (wrong sign).
- References: <bug-27116-12512@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from vincent at vinc17 dot org 2006-04-11 15:50 -------
BTW, concerning the overflow flag, I think it comes from the sign cancellation:
the long constant -2147483648 is replaced its opposite, but the opposite is not
representable in a long, hence the overflow.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27116