PR debug/20161
* passes.c (rest_of_decl_compilation): If decl is a type and
we have encountered errors, don't emit debug information.
From-SVN: r102452
+2005-07-28 Steven Bosscher <stevenb@suse.de>
+
+ PR debug/20161
+ * passes.c (rest_of_decl_compilation): If decl is a type and
+ we have encountered errors, don't emit debug information.
+
2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
+
* params.def: Fixed comment.
2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
timevar_pop (TV_VARCONST);
}
- else if (TREE_CODE (decl) == TYPE_DECL)
+ else if (TREE_CODE (decl) == TYPE_DECL
+ /* Like in rest_of_type_compilation, avoid confusing the debug
+ information machinery when there are errors. */
+ && !(sorrycount || errorcount))
{
timevar_push (TV_SYMOUT);
debug_hooks->type_decl (decl, !top_level);