------- Comment #3 from dominiq at lps dot ens dot fr  2010-06-12 12:19 -------
On powerpc-apple-darwin9 at revision 160627, the minimal command is

/opt/gcc/darwin_buildw/prev-gcc/xgcc -B/opt/gcc/darwin_buildw/prev-gcc/ -c
-DIN_GCC_FRONTEND -g -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -Ijava
-I../../gcc-4.6-work/gcc -I../../gcc-4.6-work/gcc/java
-I../../gcc-4.6-work/include -I../../gcc-4.6-work/libcpp/include -I/sw/include
-I../../gcc-4.6-work/libdecnumber -I../../gcc-4.6-work/libdecnumber/dpd
-I../libdecnumber -I/sw/include -DCLOOG_PPL_BACKEND
../../gcc-4.6-work/gcc/java/jcf-dump.c

The ICE disappears if -g is removed for any optimization, it also disappears
with -save-temps.

> p *node
> p *node->value.macro
> p node->value.macro->exp.tokens[0]
> p node->value.macro->exp.tokens[1]

I did not find a way to make it works (my knowledge of gdb is => NULL). The
backtrace is


#0  0x00274ff4 in fancy_abort ()
#1  0x00081b94 in lazy_hex_fp_value ()
#2  0x007ce888 in enter_macro_context ()
#3  0x007cf6ac in cpp_get_token ()
#4  0x007cf8e0 in cpp_get_token_with_location ()
#5  0x0008b15c in c_lex_with_flags ()
#6  0x0003f894 in c_lex_one_token ()
#7  0x00045404 in c_parser_cast_expression ()
#8  0x00045b00 in c_parser_binary_expression ()
#9  0x00045c08 in c_parser_conditional_expression ()
#10 0x00046158 in c_parser_expr_no_commas ()
#11 0x000466c8 in c_parser_expression ()
#12 0x00046c50 in c_parser_expression_conv ()
#13 0x0004bda0 in c_parser_statement_after_labels ()
#14 0x0004cd94 in c_parser_compound_statement_nostart ()
#15 0x0004e470 in c_parser_compound_statement ()
#16 0x0004eb44 in c_parser_declaration_or_fndef ()
#17 0x000519f4 in c_parse_file ()
#18 0x000920bc in c_common_parse_file ()
#19 0x00565c50 in toplev_main ()
#20 0x00001fbc in start ()

I'll attach the preprocessed source.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44509

Reply via email to