diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d8b00dcb1d7a88b569149bd5ae827179f87bd9d..920ab12404be905a3e3733ad0fff107a105cd0fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + PR mudflap/26790 + * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects. + PR mudflap/26789 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index f1009ba435702f685571a89b62e59c9951c3a238..245b940453d67be061dd5bef38a87dd5c812050a 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -1256,6 +1256,9 @@ mudflap_finish_file (void) { gcc_assert (DECL_P (obj)); + if (TREE_TYPE (obj) == error_mark_node) + continue; + if (mf_marked_p (obj)) continue;