Commit e1564e1d by Frank Ch. Eigler Committed by Frank Ch. Eigler

tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from source code with errors.

2004-05-17  Frank Ch. Eigler  <fche@redhat.com>

	* tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
	from source code with errors.

From-SVN: r81945
parent 91935422
2004-05-17 Frank Ch. Eigler <fche@redhat.com>
* tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
from source code with errors.
2004-05-17 Ranjit Mathew <rmathew@hotmail.com> 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
Enable tree browser for all front ends. Enable tree browser for all front ends.
......
...@@ -743,6 +743,7 @@ mx_register_decls (tree decl, tree *stmt_list) ...@@ -743,6 +743,7 @@ mx_register_decls (tree decl, tree *stmt_list)
if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) && if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) &&
(! TREE_STATIC (decl)) && /* auto variable */ (! TREE_STATIC (decl)) && /* auto variable */
(! DECL_EXTERNAL (decl)) && /* not extern variable */ (! DECL_EXTERNAL (decl)) && /* not extern variable */
(TREE_TYPE (decl) != error_mark_node) && /* not decl with error */
(COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))) && /* complete type */ (COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))) && /* complete type */
(! mf_marked_p (decl)) && /* not already processed */ (! mf_marked_p (decl)) && /* not already processed */
(TREE_ADDRESSABLE (decl))) /* has address taken */ (TREE_ADDRESSABLE (decl))) /* has address taken */
......
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