]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
haifa-sched.c (autopref_multipass_init): Work around -Wmaybe-uninitialized warning.
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Jan 2016 09:02:42 +0000 (10:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Jan 2016 09:02:42 +0000 (10:02 +0100)
* haifa-sched.c (autopref_multipass_init): Work around
-Wmaybe-uninitialized warning.

From-SVN: r232495

gcc/ChangeLog
gcc/haifa-sched.c

index 79fb3655966e67c915abc3698b69c3c818a96bc9..c869492d08ba37d1f3bfa897d37c95b68f15ab31 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * haifa-sched.c (autopref_multipass_init): Work around
+       -Wmaybe-uninitialized warning.
+
 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * config/arm/arm.c (thumb1_reorg): Check that the comparison is
index d0199350c1b690360c1297e891da14fd47183f65..1f1e763ae36c405748add55047a82335cb17ce2c 100644 (file)
@@ -5599,8 +5599,8 @@ autopref_multipass_init (const rtx_insn *insn, int write)
 
       int i = 0;
       rtx prev_base = NULL_RTX;
-      int min_offset;
-      int max_offset;
+      int min_offset = 0;
+      int max_offset = 0;
 
       for (i = 0; i < n_elems; i++)
        {