------- Comment #5 from jakub at gcc dot gnu dot org 2009-12-21 20:17 ------- The problem is in the check_live_switch change. As -march=native spec handling uses %<march=native, SWITCH_IGNORE is set on the option, and so the on the second and following input file check_live_switch returns false. I couldn't find the reason why SWITCH_IGNORE check has been added in that case on gcc-patches.
Worst case we could perhaps for n_infiles > 1 remember the SWITCH_IGNORE settings of each of the switches in some array and before we start handling next source file reset it back. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42442