re PR debug/51746 (Segfault in cselib_preserved_value_p)
PR debug/51746 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL. From-SVN: r182897
This commit is contained in:
parent
9b9d0043b9
commit
cbd651333d
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-01-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR debug/51746
|
||||
* var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
|
||||
|
||||
2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
PR tree-optimization/51624
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Variable tracking routines for the GNU compiler.
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GCC.
|
||||
|
@ -5519,7 +5519,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip)
|
|||
gcc_assert (oval != v);
|
||||
gcc_assert (REG_P (oloc) || MEM_P (oloc));
|
||||
|
||||
if (!cselib_preserved_value_p (oval))
|
||||
if (oval && !cselib_preserved_value_p (oval))
|
||||
{
|
||||
micro_operation moa;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue