From: Kyrylo Tkachov Date: Fri, 3 Mar 2017 16:32:01 +0000 (+0000) Subject: [AArch64] Fix bootstrap due to wide_int .elt (0) uninit warning X-Git-Tag: basepoints/gcc-8~700 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9074b295905374434534278524d541c47545347;p=thirdparty%2Fgcc.git [AArch64] Fix bootstrap due to wide_int .elt (0) uninit warning * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Use wide_int::ulow () instead of .elt (0). From-SVN: r245877 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 096d23f4ca99..03522ced844a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-03 Kyrylo Tkachov + + * config/aarch64/aarch64.c (aarch64_float_const_representable_p): + Use wide_int::ulow () instead of .elt (0). + 2017-03-03 Uros Bizjak * config/i386/i386.md (*pushtf): Change *roF constraint to *roC. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ab1bdc0233af..714bb79f5201 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -12496,7 +12496,7 @@ aarch64_float_const_representable_p (rtx x) /* If the low part of the mantissa has bits set we cannot represent the value. */ - if (w.elt (0) != 0) + if (w.ulow () != 0) return false; /* We have rejected the lower HOST_WIDE_INT, so update our understanding of how many bits lie in the mantissa and