[Bug c++/87436] [7/8/9 Regression] G++ produces >300MB .rodata section to initialize struct with big array

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 13 16:52:00 GMT 2018


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45233
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45233&action=edit
gcc9-pr87436-2.patch

Incremental patch to gimplify assignments from ctors with largish RANGE_EXPRs
using runtime loops rather than copying object from huge .rodata constant.


More information about the Gcc-bugs mailing list