[Bug 77580] New: xf86-video-intel) - memory starvation caused by flatten attribute for GCC with LTO

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 17 08:19:57 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77580

          Priority: medium
            Bug ID: 77580
          Assignee: chris at chris-wilson.co.uk
           Summary: xf86-video-intel) - memory starvation caused by
                    flatten attribute for GCC with LTO
        QA Contact: intel-gfx-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mliska at suse.cz
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: Driver/intel
           Product: xorg

Created attachment 97520
  --> https://bugs.freedesktop.org/attachment.cgi?id=97520&action=edit
LTO patch

Hello,
    I've been testing GCC 4.9 for a virtual gentoo machine and I noticed that
you us flatten attribute in source code. In case of src/sna/sna_glyphs.c
flatten functions, inliner inlines about 3.3M functions and crashes because of
no free memory (I have 8GB memory).

Please notice that LTO has ability to optimize whole program. As a result, it
sees almost all function bodies and that leads to enormous inlining.

Suggested patch removes these flatten attributes for selected functions.

Thank you,
MArtin

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140417/26fcd77e/attachment-0001.html>


More information about the intel-gfx-bugs mailing list