Commit 29d356fb by Richard Kenner

(set_decl_{origin_self,abstract_flags}): Treat a DECL_INITIAL of

error_mark_node the same as one of NULL_TREE.

From-SVN: r10382
parent df247634
...@@ -2926,7 +2926,8 @@ set_decl_origin_self (decl) ...@@ -2926,7 +2926,8 @@ set_decl_origin_self (decl)
for (arg = DECL_ARGUMENTS (decl); arg; arg = TREE_CHAIN (arg)) for (arg = DECL_ARGUMENTS (decl); arg; arg = TREE_CHAIN (arg))
DECL_ABSTRACT_ORIGIN (arg) = arg; DECL_ABSTRACT_ORIGIN (arg) = arg;
if (DECL_INITIAL (decl) != NULL_TREE) if (DECL_INITIAL (decl) != NULL_TREE
&& DECL_INITIAL (decl) != error_mark_node)
set_block_origin_self (DECL_INITIAL (decl)); set_block_origin_self (DECL_INITIAL (decl));
} }
} }
...@@ -2981,7 +2982,8 @@ set_decl_abstract_flags (decl, setting) ...@@ -2981,7 +2982,8 @@ set_decl_abstract_flags (decl, setting)
for (arg = DECL_ARGUMENTS (decl); arg; arg = TREE_CHAIN (arg)) for (arg = DECL_ARGUMENTS (decl); arg; arg = TREE_CHAIN (arg))
DECL_ABSTRACT (arg) = setting; DECL_ABSTRACT (arg) = setting;
if (DECL_INITIAL (decl) != NULL_TREE) if (DECL_INITIAL (decl) != NULL_TREE
&& DECL_INITIAL (decl) != error_mark_node)
set_block_abstract_flags (DECL_INITIAL (decl), setting); set_block_abstract_flags (DECL_INITIAL (decl), setting);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment