From: Frank Ch. Eigler Date: Mon, 17 May 2004 20:35:52 +0000 (+0000) Subject: tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from source code... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1564e1d4e05b2d10c9cfb1273a2680a3f0f4dba;p=gcc.git tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from source code with errors. 2004-05-17 Frank Ch. Eigler * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from source code with errors. From-SVN: r81945 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cdbfa2fdd75..db93d50c46d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Frank Ch. Eigler + + * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting + from source code with errors. + 2004-05-17 Ranjit Mathew Enable tree browser for all front ends. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 1d4acc8b020..ea5548fb0e6 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -743,6 +743,7 @@ mx_register_decls (tree decl, tree *stmt_list) if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) && (! TREE_STATIC (decl)) && /* auto 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 */ (! mf_marked_p (decl)) && /* not already processed */ (TREE_ADDRESSABLE (decl))) /* has address taken */