diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2944d20b64d..e03adcc4af2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-03-01 Alexandre Oliva + + * tree-flow-inline.h (next_readonly_imm_use): Return + NULL_USE_OPERAND_P after the end. + 2008-03-01 Richard Guenther PR tree-optimization/35411 diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 1afbd1a8fc7..79071a90bea 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -512,7 +512,7 @@ next_readonly_imm_use (imm_use_iterator *imm) imm->imm_use = old->next; if (end_readonly_imm_use_p (imm)) - return old; + return NULL_USE_OPERAND_P; return imm->imm_use; }