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/27116] [4.2 Regression] Incorrect integer division (wrong sign).



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-04-11 10:46 -------
Overflow flag set problem:

  n = -2;
  n.10 = n;
  D.2132 = -080000000 / n.10;

-fwrapv "fixes" the problem.  This is a dup of ...


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to work|                            |4.1.0 4.0.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-11 10:46:59
               date|                            |
            Summary|Incorrect integer division  |[4.2 Regression] Incorrect
                   |(wrong sign).               |integer division (wrong
                   |                            |sign).


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


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