------- Comment #3 from steven at gcc dot gnu dot org 2010-04-08 11:09 ------- Interestingly, LTO actually tries to use the original file name:
/* Since SET does not need to be processed by LTRANS, use the original file name and mark it with a '*' prefix so that lto_execute_ltrans knows not to process it. */ cgraph_node_set_iterator si = csi_start (set); struct cgraph_node *first = csi_node (si); fname = prefix_name_with_star (first->local.lto_file_data->file_name); But it tries to take the file name from the first node in the call graph. And the reason why we try re-use the original file name, is because the call graph is empty. Strange logic... Maybe WHOPR should give a fatal error if the only set is empty. -- steven at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-04-08 11:09:52 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41584