------- Comment #15 from jakub at gcc dot gnu dot org 2010-07-16 12:32 ------- I wonder whether the middle-end will not mind different types (the "recycled" decl will use backend_decl and its type from wherever it has been generated, and the current function will likely have a different type). Or are backend types shared for module derived types? Perhaps conversion between the two types will be considered useless, still something that needs checking.
Plus there is -fno-whole-file (unless we want to make -fwhole-file default and remove -fno-whole-file for 4.6). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945