[Bug lto/64684] [5 Regression] wrong code by LTO on x86_64-linux-gnu

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 20 10:41:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64684

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ah - you do

           if (!is_proper_for_analysis (var))
              continue;
            bitmap_set_bit (ignore_module_statics, DECL_UID (var));

but is_proper_for_analysis adds to all_module_statics (that's quite a broken
thing for this kind of function...).

I have a patch.



More information about the Gcc-bugs mailing list