http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46749
--- Comment #33 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-04 03:18:41 UTC --- Using the patch... Index: gcc/collect2.c =================================================================== --- gcc/collect2.c (revision 167430) +++ gcc/collect2.c (working copy) @@ -1055,8 +1055,10 @@ optimized by the LTO with the temporary file generated by the LTO. */ fork_execute ("ld", out_lto_ld_argv); free (lto_ld_argv); - +#if 0 maybe_unlink_list (lto_o_files); +#endif + printf("would have executed maybe_unlink_list\n"); } else if (force) { ...the previous test compilation of "gcc -flto -g -v himenoBMTxpa.c", changes to... COLLECT_GCC_OPTIONS='-c' '-mmacosx-version-min=10.6.5' '-g' '-v' '-mtune=core2' '-fltrans' '-o' '/var/tmp//cc52uGqn.ltrans0.ltrans.o' would have executed maybe_unlink_list COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-flto' '-g' '-v' '-mtune=core2' dsymutil a.out and is the only instance of that call.