This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2005 10:18:15 -0000
- Subject: [Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument
- References: <20050223125830.20161.sxanth@ceid.upatras.gr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-26 10:18 -------
Let's try this patch then.
Index: passes.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/passes.c,v
retrieving revision 2.105
diff -u -3 -p -r2.105 passes.c
--- passes.c 19 Jul 2005 18:45:56 -0000 2.105
+++ passes.c 26 Jul 2005 10:12:55 -0000
@@ -175,7 +175,10 @@ rest_of_decl_compilation (tree decl,
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);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20161