http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48467
Summary: [LTO/driver] Anomalous behavior of -save-temps Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: d.g.gorbac...@gmail.com Created attachment 23884 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23884 DIFF file with 4 tests 1. After running the 1st test, notice the absence of one generated assembler file (1.s), which is deleted by lto1. In toplev.c, 1851 if (flag_wpa) 1852 unlink_if_ordinary (asm_file_name); 2. As the 2nd and 3rd tests show, it can also be misused as an output file for lto1, so its original, written by cc1, content gets lost. 3. The 4th test gives good, expected results.