From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20823 invoked by alias); 23 Apr 2002 16:26:12 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20755 invoked by uid 71); 23 Apr 2002 16:26:07 -0000 Resent-Date: 23 Apr 2002 16:26:07 -0000 Resent-Message-ID: <20020423162607.20754.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mikpos@shaw.ca Received:(qmail 18938 invoked from network); 23 Apr 2002 16:21:23 -0000 Received: from unknown (HELO mikpos.dyndns.org) (24.71.206.188) by sources.redhat.com with SMTP; 23 Apr 2002 16:21:23 -0000 Received: from mikpos by mikpos.dyndns.org with local (Exim 3.03 #1) id 17032g-0005Na-00 for gcc-gnats@gcc.gnu.org; Tue, 23 Apr 2002 10:21:22 -0600 Message-Id: Date: Tue, 23 Apr 2002 09:26:00 -0000 From: mikpos@shaw.ca To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: objc/6430: Obj-C dwarf2out crash with -ggdb3 and protocols X-SW-Source: 2002-04/txt/msg01210.txt.bz2 List-Id: >Number: 6430 >Category: objc >Synopsis: Obj-C dwarf2out crash with -ggdb3 and protocols >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Apr 23 09:26:07 PDT 2002 >Closed-Date: >Last-Modified: >Originator: mike burrell >Release: 3.0.4 >Organization: >Environment: System: Linux pillo 2.4.17 #23 Thu Jan 17 17:41:02 MST 2002 i586 unknown Architecture: i586 host: i586-pc-linux-gnu build: i586-pc-linux-gnu target: i586-pc-linux-gnu configured with: ../gcc-3.0.4/configure --prefix=/usr --enable-shared --with-gnu-as --with-gnu-ld >Description: Attached sidebar.m, when compiled with 'gcc sidebar.m -c -ggdb3', gives the following error: sidebar.m:74: Internal compiler error in dwarf2out_finish, at dwarf2out.c:11277 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: sidebar.mi follows (as created by gcc -v -save-temps): ------------------------------------------------------- # 1 "sidebar.m" typedef struct objc_class *MetaClass; typedef struct objc_class *Class; struct objc_class { MetaClass class_pointer; struct objc_class* super_class; const char* name; long version; unsigned long info; long instance_size; struct objc_ivar_list* ivars; struct objc_method_list* methods; struct sarray * dtable; struct objc_class* subclass_list; struct objc_class* sibling_class; struct objc_protocol_list *protocols; void* gc_object_type; }; @class NSInvocation; @interface NSObject @end @interface NSView @end @interface Token : NSObject @end @protocol DocumentDelegate - (void)molestedDocumentWithMessage: (NSInvocation *)msg; - (void)molestedGrammarWithMessage: (NSInvocation *)msg; - (void)destroyedDocument; - (void)destroyedGrammar; - (void)highlightedToken: (Token *)t; - (void)highlightedGrammar: (Class)c; @end @interface Sidebar : NSView @end @implementation Sidebar - (void)molestedDocumentWithMessage: (NSInvocation *)m { } - (void)molestedGrammarWithMessage: (NSInvocation *)m { } - (void)destroyedDocument { } - (void)destroyedGrammar { } - (void)highlightedToken: (Token *)t { } - (void)highlightedGrammar: (Class)c { } @end output of gcc -v -save-temps: ------------------------------ Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/specs Configured with: ../gcc-3.0.4/configure --prefix=/usr --enable-shared --with-gnu-as --with-gnu-ld Thread model: single gcc version 3.0.4 /usr/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/cpp0 -lang-objc -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=4 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ sidebar.m sidebar.mi GNU CPP version 3.0.4 (cpplib) (i386 Linux/ELF) ignoring duplicate directory "/home/mikpos/include" #include "..." search starts here: #include <...> search starts here: /home/mikpos/include /usr/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/include/objc /usr/local/include /usr/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/include /usr/i586-pc-linux-gnu/include /usr/include End of search list. /usr/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/cc1obj -fpreprocessed sidebar.mi -quiet -dumpbase sidebar.m -ggdb3 -version -o sidebar.s GNU CPP version 3.0.4 (cpplib) (i386 Linux/ELF) GNU Objective-C version 3.0.4 (i586-pc-linux-gnu) compiled by GNU C version 3.0.4. sidebar.m:74: Internal compiler error in dwarf2out_finish, at dwarf2out.c:11277 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: Either compile without -ggdb (-ggdb1, -ggdb2 and -ggdb3 all give ICE, but -g works), or else remove the protocol DocumentDelegate from the code and remove the from the declaration of NSView. >Release-Note: >Audit-Trail: >Unformatted: