A recent patch increased GCC's memory consumption!

Kazu Hirata kazu@codesourcery.com
Tue Apr 18 15:23:00 GMT 2006


Hi Honza,

> Hmm,
> looks like it is the vector change.  I wonder if we can't cut them down
> to VARRAY memory usage and/or avoid aliasing datastructures at -O0
> completely?

Of the three new VECs mentioned in the ChangeLog diff, reg_base_value tries to 
keep allocated memory for the next function to be compiled.  See alias.c:2428.

The cgraph one shouldn't matter as it is allocated on heap and explicitly freed.

When you take stats, are you doing so after running GC?

Kazu Hirata



More information about the Gcc-regression mailing list