From 52831d13a7292d81342570c90c863d26609450d1 Mon Sep 17 00:00:00 2001 From: Michael Zolotukhin Date: Fri, 30 Nov 2012 08:43:07 +0000 Subject: [PATCH] gensupport.c (maybe_eval_c_test): Remove not-null check for expr. * 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 | 6 ++++++ gcc/gensupport.c | 2 +- gcc/read-rtl.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a5160dbc81..db07f002b36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-11-30 Michael Zolotukhin + + * 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 * config/i386/host-mingw32.c (va_granularity): Make none-const. diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 00290b00144..e573f64f417 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -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; diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 7da12b5b126..6dd4fc51ddb 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -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) -- 2.30.2