ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def is NULL.
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def is NULL. * gcc.dg/20020304-1.c: New test. From-SVN: r50313
This commit is contained in:
parent
4f8af10714
commit
150c467b71
|
@ -1,3 +1,8 @@
|
|||
2002-03-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
|
||||
is NULL.
|
||||
|
||||
2002-03-05 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
|
||||
|
|
|
@ -856,10 +856,14 @@ ssa_ccp_substitute_constants ()
|
|||
{
|
||||
if (values[i].lattice_val == CONSTANT)
|
||||
{
|
||||
rtx def = VARRAY_RTX (ssa_definition, i);
|
||||
rtx set = single_set (def);
|
||||
rtx def = VARRAY_RTX (ssa_definition, i), set;
|
||||
struct df_link *curruse;
|
||||
|
||||
/* Definition might have been deleted already. */
|
||||
if (! def)
|
||||
continue;
|
||||
|
||||
set = single_set (def);
|
||||
if (! set)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2002-03-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/20020304-1.c: New test.
|
||||
|
||||
2002-03-04 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* gcc.c-torture/compile/20020304-1.c: New test case
|
||||
|
|
Loading…
Reference in New Issue