aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-01-18 10:02:42 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-01-18 10:02:42 +0100
commit99e18f02b63c84747f602abe3ae2b1cb9fb009d3 (patch)
treefd1279b524ccf045ba7c8ba335f8ec5c92929137 /gcc
parent39d44c531fcf423c5bccdc43dee27f31e195b685 (diff)
downloadgcc-99e18f02b63c84747f602abe3ae2b1cb9fb009d3.zip
gcc-99e18f02b63c84747f602abe3ae2b1cb9fb009d3.tar.gz
gcc-99e18f02b63c84747f602abe3ae2b1cb9fb009d3.tar.bz2
haifa-sched.c (autopref_multipass_init): Work around -Wmaybe-uninitialized warning.
* haifa-sched.c (autopref_multipass_init): Work around -Wmaybe-uninitialized warning. From-SVN: r232495
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/haifa-sched.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 79fb365..c869492 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index d019935..1f1e763 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -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++)
{