public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* objc/6430: Obj-C dwarf2out crash with -ggdb3 and protocols
@ 2002-04-23 9:26 mikpos
0 siblings, 0 replies; only message in thread
From: mikpos @ 2002-04-23 9:26 UTC (permalink / raw)
To: gcc-gnats
>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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 <DocumentDelegate>
@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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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 <DocumentDelegate> from the declaration of NSView.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-23 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 9:26 objc/6430: Obj-C dwarf2out crash with -ggdb3 and protocols mikpos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).