This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/27116] [4.2 Regression] Incorrect integer division (wrong sign).
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2006 19:16:27 -0000
- Subject: [Bug middle-end/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 #14 from rguenth at gcc dot gnu dot org 2006-06-07 19:16 -------
Oh, btw. the transformation is implemented correctly. Just we fold -1-a to ~a
(ok), and then negate_expr_p says it can easily negate ~a and negate_expr
negates it as a+1, which introduces the overflow. So, I'll prepare a different
fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27116