re PR rtl-optimization/77425 (Pointer test follows dereference in sched-int.h)

PR rtl-optimization/77425
	* sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
	is NULL.

From-SVN: r240163
This commit is contained in:
Jakub Jelinek 2016-09-15 14:27:35 +02:00 committed by Jakub Jelinek
parent 76ff80fb8b
commit 63c879fca4
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2016-09-15 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/77425
* sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
is NULL.
PR middle-end/77475
* config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
use %qs instead of %s where desirable, use argument instead of arg in

View File

@ -1624,10 +1624,11 @@ sd_iterator_cond (sd_iterator_def *it_ptr, dep_t *dep_ptr)
sd_next_list (it_ptr->insn,
&it_ptr->types, &list, &it_ptr->resolved_p);
it_ptr->linkp = &DEPS_LIST_FIRST (list);
if (list)
continue;
{
it_ptr->linkp = &DEPS_LIST_FIRST (list);
continue;
}
}
*dep_ptr = NULL;