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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
The proper partitioning algorithm to use would be 1to1, not max (which is for
debugging only).

Note that global register vars shouldn't be used with LTO and if they are
restricted to just a few compilation units the recommended fix is to build
those CUs without -flto.

For the particular emitted error the issue is that we fail to materialize
global reg vars before other functions.  But that's likely not the only
issue you might hit with global reg vars.

Honza, that's probably caused by "lazy" initializer stuff or so?  That is
shouldn't materialize_cgraph process those somehow before symtab->compile ()
gets run?

Reply via email to