]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of init_symbolic_nu...
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Tue, 10 Jun 2014 02:10:46 +0000 (02:10 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Tue, 10 Jun 2014 02:10:46 +0000 (02:10 +0000)
2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
    init_symbolic_number ().

From-SVN: r211395

gcc/ChangeLog
gcc/tree-ssa-math-opts.c

index e12f2f9a1c2b86e0fc8655908806c6aae98fabfa..0c63d04b52375d4860fa77d0ef593e7ce383ca27 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
+       init_symbolic_number ().
+
 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
 
        PR middle-end/61141
index a928ad926bb55c70e90125ba28e3b0789246dd70..1f011a6f937604eca6fc8a3df40b9d0d6a080734 100644 (file)
@@ -1784,7 +1784,8 @@ find_bswap_or_nop_load (gimple stmt, tree ref, struct symbolic_number *n)
   if (bitsize % BITS_PER_UNIT)
     return false;
 
-  init_symbolic_number (n, ref);
+  if (!init_symbolic_number (n, ref))
+    return false;
   n->base_addr = base_addr;
   n->offset = offset;
   n->bytepos = bitpos / BITS_PER_UNIT;