------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-05 23:53 ------- Ok, compiling comment #1 with -O2 -fprofile-generate -fprofile-use, I do get the failures. Here is the valgrid report: ==5355== Invalid free() / delete / delete[] ==5355== at 0x11B1DA33: free (vg_replace_malloc.c:235) ==5355== by 0x6E915D: value_profile_transformations (value-prof.h:65) ==5355== by 0x74E3CB: tree_profiling (tree-profile.c:250) ==5355== by 0x74CD55: execute_one_pass (passes.c:827) ==5355== by 0x74CE4B: execute_pass_list (passes.c:859) ==5355== by 0x74CED5: execute_ipa_pass_list (passes.c:881) ==5355== by 0x787409: cgraph_optimize (cgraphunit.c:1223) ==5355== by 0x43F3AE: cp_finish_file (decl2.c:3115) ==5355== by 0x4AD1B9: c_common_parse_file (c-opts.c:1144) ==5355== by 0x7303C7: toplev_main (toplev.c:991) ==5355== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so) ==5355== by 0x402659: ??? (start.S:113) ==5355== Address 0x11FFA378 is 0 bytes inside a block of size 40 free'd ==5355== at 0x11B1DA33: free (vg_replace_malloc.c:235) ==5355== by 0x6E8D2A: branch_prob (value-prof.h:65) ==5355== by 0x74E3A8: tree_profiling (tree-profile.c:246) ==5355== by 0x74CD55: execute_one_pass (passes.c:827) ==5355== by 0x74CE4B: execute_pass_list (passes.c:859) ==5355== by 0x74CED5: execute_ipa_pass_list (passes.c:881) ==5355== by 0x787409: cgraph_optimize (cgraphunit.c:1223) ==5355== by 0x43F3AE: cp_finish_file (decl2.c:3115) ==5355== by 0x4AD1B9: c_common_parse_file (c-opts.c:1144) ==5355== by 0x7303C7: toplev_main (toplev.c:991) ==5355== by 0x11C4F47A: __libc_start_main (in /lib/libc-2.3.5.so) ==5355== by 0x402659: ??? (start.S:113)
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26570