This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12245] [4.0/4.1/4.2/4.3 regression] Uses lots of memory when compiling large initialized arrays



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]