This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12245] [3.4/4.0/4.1 regression] Uses lots of memory when compiling large initialized arrays
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2005 10:03:11 -0000
- Subject: [Bug c/12245] [3.4/4.0/4.1 regression] Uses lots of memory when compiling large initialized arrays
- References: <20030911065615.12245.gccBug.9.OkianWarrior@SpamGourmet.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-12 10:03 -------
One problem is that we use integer tree nodes for counting from zero to N, which
is just stupid and wastes RAM (because we do not collect during building the
initializer). Of course we also store that "index" in the initializer element
list.
This whole mess asks for a (less general) rewrite. Minimal-invasive surgery
is impossible.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245