This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc 2.95.2 objc bug on IRIX 6.2 with -g


Tried to use GNATS - got a "redirecting - please wait" message and got
bored after a few minutes.


GCC VERSION AND SYSTEM TYPE:
gela:141# gcc -v
Reading specs from
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/specs
gcc version 2.95.2 19991024 (release)
gela:142# uname -a
IRIX gela 6.2 03131015 IP20


COMMAND LINE AND OUTPUT:
gela:149# gcc -c -Wall -g break-irix.m
break-irix.m:26: Internal compiler error in `dwarf2out_finish', at
dwarf2out.c:10054
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.


GCC BUILD OPTIONS:
Not known.
gcc was obtained precompiled for IRIX 6.x from freeware.sgi.com
Try freeware@sgi.com for details.


PREPROCESSED FILE:
See attached break-irix.m file.
Derived from preprocessor output of a more complex file it contains no
preprocessor commands.


COMMENTS:
The combination of a protocol and -g seems to be fatal.

Does not fail if -g is omitted:
gela:150# gcc -c -Wall 
gela:151#   

Does not fail on my Linux (SuSE 6.2) system:
narvik:112# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
narvik:113# uname -a
Linux narvik 2.2.10 #1 Tue Jul 20 16:32:24 MEST 1999 i586 unknown
narvik:114# gcc -c -Wall -g break-irix.m
narvik:115#
typedef struct objc_object *id;
typedef struct objc_class *Class;

@interface NSObject {
  Class isa;
}
@end

@protocol MyProtocol  
- (int) protocolMethod;
@end

@interface MyClass : NSObject <MyProtocol>
{
  int _iVar;
}
@end

@implementation MyClass

- (int) protocolMethod
{
  return _iVar;
}
@end

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]