From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19965 invoked by alias); 26 Jul 2005 10:18:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19953 invoked by uid 48); 26 Jul 2005 10:18:15 -0000 Date: Tue, 26 Jul 2005 10:38:00 -0000 Message-ID: <20050726101815.19952.qmail@sourceware.org> From: "steven at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050223125830.20161.sxanth@ceid.upatras.gr> References: <20050223125830.20161.sxanth@ceid.upatras.gr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03323.txt.bz2 List-Id: ------- 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