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
This commit is contained in:
Jakub Jelinek 2016-01-18 10:02:42 +01:00 committed by Jakub Jelinek
parent 39d44c531f
commit 99e18f02b6
2 changed files with 7 additions and 2 deletions

View 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

View 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++)
{