[Bug ipa/77472] build of intel_drv.so (xf86-video-intel) takes over 13GB+ memory during lto1

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 4 15:04:00 GMT 2016


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

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #3)
> Looks like GCC is trying to satisfy the flatten attribute at link time which
> is ignored by clang?

Yes, you're right:

% grep -D skip -R -i "flatten"
sna_glyphs.i:__attribute__((flatten)) static 
sna_glyphs.i:__attribute__((flatten)) static 
sna_glyphs.i:__attribute__((flatten)) static 

Deleting these three attributes "fixes" the issue.
Even a single flatten attribute is enough to cause problems.


More information about the Gcc-bugs mailing list