OSDN Git Service

PR debug/51746
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2012 00:29:13 +0000 (00:29 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2012 00:29:13 +0000 (00:29 +0000)
* var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182897 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/var-tracking.c

index 3d9bc63..a30063a 100644 (file)
@@ -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
index 27bff38..557a2ca 100644 (file)
@@ -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;