This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/63242] memory starvation caused by flatten attribute
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Sep 2014 09:11:13 +0000
- Subject: [Bug lto/63242] memory starvation caused by flatten attribute
- Auto-submitted: auto-generated
- References: <bug-63242-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63242
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Heh, yeah. flatten with LTO will indeed have the possibility to inline very
many functions ;) Note that all limits we expose on inlining (large function,
large unit, etc.) are not applied here.
Not sure if limiting flatten to early inlining would be a good idea (you'd
never get cross-module inlining on flatten that way, similar to always_inline).
Maybe we should impose a really-large-function limit ... (and flatten in
function size order).