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/46374] Add nooverflow attribute


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-08 15:41:30 UTC ---
That code is really:
bool
f (uint16_t x, uint16_t y)
{
  return ((int)x) + 8 == ((int)y) - 17;
}


--- CUT ---
There should be no zero extends in that code because the ABI requires them to
be zero extended already.  If there is then that is the bug and really a
nooverflow attribute is not required there.


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