------- Comment #3 from rguenth at gcc dot gnu dot org 2010-02-13 10:35 ------- Program received signal SIGSEGV, Segmentation fault. 0x08158cf6 in coverage_checksum_string (chksum=0, string=0x0) at /home/richard/src/trunk/gcc/coverage.c:484 484 for (i = 0; string[i]; i++)
Looks like the current function does not have a location. 536 { 537 expanded_location xloc 538 = expand_location (DECL_SOURCE_LOCATION (current_function_decl)); 539 unsigned chksum = xloc.line; 540 541 chksum = coverage_checksum_string (chksum, xloc.file); 542 chksum = coverage_checksum_string 543 (chksum, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); 544 545 return chksum; (gdb) p xloc $3 = {file = 0x0, line = 0, column = 0, sysp = 0 '\000'} (gdb) call debug_generic_expr (current_function_decl) _Jv_global_static_constructor -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.3/4.4/4.5 Regression'jc1:|[4.3/4.4/4.5 Regression] |internal compiler error: |'jc1: internal compiler |Segmentation fault' using |error: Segmentation fault' |gcj -fprofile-arcs |using gcj -fprofile-arcs Target Milestone|--- |4.3.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43055