Update to "gcc 2.95.2 objc bug on IRIX 6.2 with -g"

Tim Waggett tim.waggett@asa.co.uk
Fri Oct 20 08:49:00 GMT 2000


This version of the bug report now contains build information on the
binary distribution from David Kaelbling at SGI.


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:
gcc was obtained precompiled for IRIX 6.x from ftp://freeware.sgi.com
Build details from David Kaelbling via freeware@sgi.com
> I built gcc with:
>        --enable-version-specific-runtime-libs 
>        --enable-threads 
>        --enable-haifa



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



More information about the Gcc-bugs mailing list