diff options
author | Michael Zolotukhin <michael.v.zolotukhin@intel.com> | 2012-11-30 08:43:07 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2012-11-30 08:43:07 +0000 |
commit | 52831d13a7292d81342570c90c863d26609450d1 (patch) | |
tree | 2769a75df04ce40f9a219fd231856354ce31fbcf /gcc | |
parent | e7b0b62dc0cdf46195cc3a1353a66812199cce30 (diff) | |
download | gcc-52831d13a7292d81342570c90c863d26609450d1.zip gcc-52831d13a7292d81342570c90c863d26609450d1.tar.gz gcc-52831d13a7292d81342570c90c863d26609450d1.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gensupport.c | 2 | ||||
-rw-r--r-- | gcc/read-rtl.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a5160d..db07f00 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 00290b0..e573f64 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 7da12b5..6dd4fc5 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) |