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: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2005 10:09:04 -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 giovannibajo at libero dot it 2005-09-12 10:08 -------
The problem is that the gimplifier always want the index field of the
constructor element to be filled. If you fix that in the obvious way (so
that "no index" means "previous index + 1"), it should be quite easy to fix,
for C++. In C, I have no clue how this interacts with designated initializers
though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245