diff options
author | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-17 20:35:52 +0000 |
---|---|---|
committer | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-17 20:35:52 +0000 |
commit | 34b9d7fd7ffc02923971c88f2aa2c9dbcc90f4c1 (patch) | |
tree | 3b19305efb8dd568a8e6dbd2683801858f08ebb4 /gcc/tree-mudflap.c | |
parent | be8a81605eb5eb301e4f4663f04eca8f0c6a53d3 (diff) | |
download | gcc-34b9d7fd7ffc02923971c88f2aa2c9dbcc90f4c1.tar.gz |
2004-05-17 Frank Ch. Eigler <fche@redhat.com>
* tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
from source code with errors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |