[Bug middle-end/48580] missed optimization: integer overflow checks
jules at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 5 13:08:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48580
--- Comment #13 from jules at gcc dot gnu.org 2011-10-05 13:05:47 UTC ---
Coming to think of it, if _Sat were allowed on plain integers too, a _Flagged
_Sat int could also be queried for saturation using a similar mechanism, like:
int foo (_Sat int x, _Sat int y)
{
return _Saturated ((_Sat _Flagged) x + y);
}
I'm probably getting ahead of myself :-).
More information about the Gcc-bugs
mailing list