OSDN Git Service

2004-05-17 Frank Ch. Eigler <fche@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / tree-mudflap.c
index 1d4acc8..ea5548f 100644 (file)
@@ -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 */
       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 */
           (COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))) && /* complete type */
           (! mf_marked_p (decl)) && /* not already processed */
           (TREE_ADDRESSABLE (decl))) /* has address taken */