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 tree-optimization/31602] Overflow warning causes GDB -Werror build failure



------- Comment #2 from ian at airs dot com  2007-04-18 15:14 -------
Yes, the warning is happening because gcc relies on undefined signed overflow
when assuming that it will execute the loop at least once.  Of course when
using -fwrapv the loop should not be executed at all when num > INT_MAX - 10.

I'll try to figure out what to do about this.


-- 

ian at airs dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ian at gcc dot gnu dot org  |ian at airs dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-18 15:14:27
               date|                            |


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


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