From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205 Description of problem: See summary and details below. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Compile lsh from CVS. Actual Results: [jas@localhost argp]$ make CC="gcc -save-temps" source='argp-parse.c' object='argp-parse.o' libtool=no \ depfile='.deps/argp-parse.Po' tmpdepfile='.deps/argp-parse.TPo' \ depmode=gcc3 /bin/sh /home/jas/src/lsh/src/argp/../../depcomp \ gcc -save-temps -DHAVE_CONFIG_H -I. -I/home/jas/src/lsh/src/argp -I. -D_GNU_SOURCE -I/home/jas/src/lsh/src/argp -g -O2 -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Waggregate-return -Wpointer-arith -Wbad-function-cast -Wnested-externs -c `test -f argp-parse.c || echo '/home/jas/src/lsh/src/argp/'`argp-parse.c argp-parse.c:96: warning: missing initializer argp-parse.c:96: warning: (near initialization for `argp_default_options[1].group') argp-parse.c:97: warning: missing initializer argp-parse.c:97: warning: (near initialization for `argp_default_options[2].group') argp-parse.c:99: warning: missing initializer argp-parse.c:99: warning: (near initialization for `argp_default_options[3].group') argp-parse.c:100: warning: missing initializer argp-parse.c:100: warning: (near initialization for `argp_default_options[4].arg') argp-parse.c:160: warning: missing initializer argp-parse.c:160: warning: (near initialization for `argp_version_options[1].arg') argp-parse.c: In function `_option_is_short': argp-parse.c:1294: Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:7985 Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. make: *** [argp-parse.o] Error 1 [jas@localhost argp]$ Expected Results: Guess what. Additional info: CC=gcc3 works. Also see attached argp-parse.i from -save-temps.
Created attachment 46062 [details] file that crashes gcc
Don't use -ggdb in 2.96-RH. Being secondary debug format there, it got much less testing (this is not the only ICE you can see with dwarf2). gcc 3.0.x is better and 3.1 even better (in 3.1 dwarf2 is the default debugging format).