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++/14179] [3.3/3.4/4.0 Regression] out of memory


------- Additional Comments From giovannibajo at libero dot it  2004-09-22 00:36 -------
OK, let me update the situation. I'm using a testcase which has an array of 4 
millions of initializers (about 1/4th of the original testcase). These are the 
three patches I'm considering important for this patch till now:

(1) Nathan's INTEGER_CST sharing
(2) my patch to reshape_init_array using HOST_WIDE_INTEGER
(3) my patch to speedup initializer list parsing

(1) and (2) affects memory occupation, (3) affects compilation time. This is 
the situations for our supported compilers:

GCC-3.3.5
---------
(1) not present
(2) applied
(3) not required (old parser)

Testcase: killed after 0m31s (420MB is the kill threshold).



GCC-3.4.3
---------
(1) not present
(2) applied
(3) applied

Testcase: killed after 0m23s (420MB is the kill threshold).


GCC-4.0.0
---------
(1) applied
(2) applied
(3) will be applied (or rewritten in a better form).

Testcase: 0m26s, 220MB
(this is with (3) applied, and checking disabled)


For comparison, GCC-2.95: 0m5s, 175MB.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14179


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