C++ PATCH: PR c++/14138

Andrew Pinski pinskia@physics.uc.edu
Tue Mar 2 00:16:00 GMT 2004


On Mar 1, 2004, at 16:13, Mike Stump wrote:

> On Monday, March 1, 2004, at 04:01 PM, Mark Mitchell wrote:
>> All excellent points.  But, there's no obvious data structure in 
>> which to record that information.  Once we tidy up all the scope 
>> handling / symbol table goo in the front end, this would be possible 
>> and very desirable.
>
> static GTY(()) varray_type real_scope;
> void
> push_scope () {
> 	VARRAY_PUSH_CHAR (real_scope, push_scope_old ());
> }
>
> void
> pop_scope () {
> 	if (VARRAY_TOP_CHAR (real_scope))
> 		pop_scope_old ();
> 	VARRAY_POP (real_scope);
> }
>
> ?

That just makes the memory (and compile time) to go up which is what 
this is to prevent.
Also it will make GC work harder which in terns make the compile time 
go up.


Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list