gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
authorMichael Zolotukhin <michael.v.zolotukhin@intel.com>
Fri, 30 Nov 2012 08:43:07 +0000 (08:43 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 30 Nov 2012 08:43:07 +0000 (08:43 +0000)
        * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
        * read-rtl.c (apply_iterators): Initialize condition with "" instead
        of NULL.

From-SVN: r193988

gcc/ChangeLog
gcc/gensupport.c
gcc/read-rtl.c

index 9a5160d..db07f00 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-30  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
+
+       * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
+       * read-rtl.c (apply_iterators): Initialize condition with "" instead
+       of NULL.
+
 2012-11-30  Kai Tietz  <ktietz@redhat.com>
 
        * config/i386/host-mingw32.c (va_granularity): Make none-const.
index 00290b0..e573f64 100644 (file)
@@ -2650,7 +2650,7 @@ maybe_eval_c_test (const char *expr)
   const struct c_test *test;
   struct c_test dummy;
 
-  if (!expr || expr[0] == 0)
+  if (expr[0] == 0)
     return 1;
 
   dummy.expr = expr;
index 7da12b5..6dd4fc5 100644 (file)
@@ -546,7 +546,7 @@ apply_iterators (rtx original, rtx *queue)
     {
       /* Apply the current iterator values.  Accumulate a condition to
         say when the resulting rtx can be used.  */
-      condition = NULL;
+      condition = "";
       FOR_EACH_VEC_ELT (iterator_uses, i, iuse)
        {
          if (iuse->iterator->group == &substs)