aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2017-03-03 16:32:01 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2017-03-03 16:32:01 +0000
commitd9074b295905374434534278524d541c47545347 (patch)
tree56c71dfefa17ad1cb81765edeff15efd007f4bac
parentc953fb88feaff23f5ffb7caf2f906f08d2d79550 (diff)
downloadgcc-d9074b295905374434534278524d541c47545347.zip
gcc-d9074b295905374434534278524d541c47545347.tar.gz
gcc-d9074b295905374434534278524d541c47545347.tar.bz2
[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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/aarch64/aarch64.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 096d23f..03522ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
+ Use wide_int::ulow () instead of .elt (0).
+
2017-03-03 Uros Bizjak <ubizjak@gmail.com>
* 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 ab1bdc0..714bb79 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