This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/61902] signed integer overflow in real.c in real_from_integer
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Jul 2014 07:56:04 +0000
- Subject: [Bug middle-end/61902] signed integer overflow in real.c in real_from_integer
- Auto-submitted: auto-generated
- References: <bug-61902-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61902
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.10.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This code has changed a lot in 4.10/5.0. The pair is no longer there and
instead we use wide_int and:
/* We have to ensure we can negate the largest negative number. */
wide_int val = wide_int::from (val_in, maxbitlen, sgn);
if (r->sign)
val = -val;
So closing as fixed in GCC 4.10/5.0.