This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48580] missed optimization: integer overflow checks
- From: "jules at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2011 13:05:47 +0000
- Subject: [Bug middle-end/48580] missed optimization: integer overflow checks
- Auto-submitted: auto-generated
- References: <bug-48580-4@http.gcc.gnu.org/bugzilla/>
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 :-).