This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12245] [4.0/4.1/4.2/4.3 regression] Uses lots of memory when compiling large initialized arrays
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 06:37:37 -0000
- Subject: [Bug c/12245] [4.0/4.1/4.2/4.3 regression] Uses lots of memory when compiling large initialized arrays
- References: <bug-12245-6931@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #35 from ian at airs dot com 2008-01-18 06:37 -------
The bug should certainly be fixed. But it's unfortunately a lot of work for a
small payoff--most people are not in your situation. I think Joseph is correct
in lowering the priority. It's pointless for us to describe this bug as
release-blocking, when it clearly is not.
The core problem is C99 designated initializers. Those require us to read the
entire array into memory before we emit any of it. Otherwise we could generate
the wrong code, and there is no way to recover.
So the only plausible fix is to optimize the memory representation used for
large array initializers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245