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

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-22 14:33:22 
UTC ---
Created attachment 22120
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22120
different testcase

This one doesn't need -fprofile-generate

$ gcc -fenable-icf-debug -g pr44689-2.C
==20573== Invalid read of size 2
==20573==    at 0x5FFFF7: cp_function_decl_explicit_p (cp-objcp-common.c:164)
==20573==    by 0x74F14E: gen_subprogram_die (dwarf2out.c:18861)
==20573==    by 0x744B68: force_decl_die (dwarf2out.c:20493)
==20573==    by 0x744C3F: dwarf2out_direct_call (dwarf2out.c:21355)
==20573==    by 0x7AC4AC: final_scan_insn (final.c:2685)
==20573==    by 0x7AC67D: final (final.c:1719)
==20573==    by 0x7ACAB8: rest_of_handle_final (final.c:4231)
==20573==    by 0x8D33DE: execute_one_pass (passes.c:1560)
==20573==    by 0x8D3674: execute_pass_list (passes.c:1615)
==20573==    by 0x8D3686: execute_pass_list (passes.c:1616)
==20573==    by 0x8D3686: execute_pass_list (passes.c:1616)
==20573==    by 0xA204E5: tree_rest_of_compilation (tree-optimize.c:422)
==20573==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20573== 
pr44689-2.C:5:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to