diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-20 16:19:21 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-20 16:19:21 +0000 |
commit | 7ac1fd6d66c4ba30fb751d99edc1bb40a29fe734 (patch) | |
tree | 47c0c5b95d88fc3848ab235c8fef9c9b3a0e6a72 /gcc/tree-mudflap.c | |
parent | 72e3ec84575598d7cdedc2e5de0679c4ee0c90ca (diff) | |
download | gcc-7ac1fd6d66c4ba30fb751d99edc1bb40a29fe734.tar.gz |
PR mudflap/26789
* tree-mudflap.c (mudflap_finish_file): Skip function when there
were errors. Remove check for erroneous objects.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 1a62859e6f1..ed5ef4867da 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -1232,6 +1232,10 @@ mudflap_finish_file (void) { tree ctor_statements = NULL_TREE; + /* No need to continue when there were errors. */ + if (errorcount != 0 || sorrycount != 0) + return; + /* Insert a call to __mf_init. */ { tree call2_stmt = build_function_call_expr (mf_init_fndecl, NULL_TREE); @@ -1256,9 +1260,6 @@ mudflap_finish_file (void) { gcc_assert (DECL_P (obj)); - if (TREE_TYPE (obj) == error_mark_node) - continue; - if (mf_marked_p (obj)) continue; |