diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 11:08:14 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 11:08:14 +0000 |
commit | da579dbb231aeab3f2dfb9ed1f3c1b0c80d7ecdf (patch) | |
tree | 9e97fc62830a4c4b6d61b8286612e1d1f1b41fb5 /gcc/gimplify.c | |
parent | e46ab6d38b7fcb3d8f98dca103b0d02e34af081d (diff) | |
download | gcc-da579dbb231aeab3f2dfb9ed1f3c1b0c80d7ecdf.tar.gz |
/gcc/cp
2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
* cp-tree.h (error_operand_p): Remove.
/gcc
2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
* tree.h (error_operand_p): Add.
* dbxout.c (dbxout_type_fields): Use the latter.
* c-decl.c (add_stmt): Likewise.
* gimplify.c (omp_add_variable, omp_notice_variable,
gimplify_scan_omp_clauses): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174899 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 31e0daf3d41..bc6d32179a6 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -5448,7 +5448,7 @@ omp_add_variable (struct gimplify_omp_ctx *ctx, tree decl, unsigned int flags) unsigned int nflags; tree t; - if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node) + if (error_operand_p (decl)) return; /* Never elide decls whose type has TREE_ADDRESSABLE set. This means @@ -5573,7 +5573,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code) unsigned flags = in_code ? GOVD_SEEN : 0; bool ret = false, shared; - if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node) + if (error_operand_p (decl)) return false; /* Threadprivate variables are predetermined. */ @@ -5830,7 +5830,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, do_add: decl = OMP_CLAUSE_DECL (c); - if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node) + if (error_operand_p (decl)) { remove = true; break; @@ -5889,7 +5889,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, case OMP_CLAUSE_COPYIN: case OMP_CLAUSE_COPYPRIVATE: decl = OMP_CLAUSE_DECL (c); - if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node) + if (error_operand_p (decl)) { remove = true; break; |