This is the mail archive of the gcc-patches@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]

Re: C++ PATCH: PR c++/14138



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


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