PR mudflap/26789
* tree-mudflap.c (mudflap_finish_file): Skip function when there
were errors. Remove check for erroneous objects.
From-SVN: r113121
+2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR mudflap/26789
+ * tree-mudflap.c (mudflap_finish_file): Skip function when there
+ were errors. Remove check for erroneous objects.
+
2006-04-20 Jeff Law <law@redhat.com>
PR tree-optimization/26854
{
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);
{
gcc_assert (DECL_P (obj));
- if (TREE_TYPE (obj) == error_mark_node)
- continue;
-
if (mf_marked_p (obj))
continue;