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: [PATCH] -gused



On Friday, June 20, 2003, at 9:18 PM, Richard Henderson wrote:


You're still chosing which variables to emit inside dbxout.c.  Make
the choice in generic code, e.g. rest_of_decl_compilation and
check_global_declarations.

In current scheme, dbxout emits stabs for variables and associated types when variable is used. It takes advantage of lack of ordering requirements in stabs.

e.g.

struct _foo
{
	int i;
	int j;
} foobar;

foobar.i=0;
foobar.j=0;

It will emit stabs for 'int' while emitting stabs for _foo.

I do not know how well it will work with other  formats. Plus pulling
this out requires some thinking, that I have not done. I think, we
leave it in dbxout and make queuing available in final.c for other
formats now. Once we have this approach available
in other formats also we can pull it out of dbxout.

thoughts?
-Devang

 I'm not sure where else off the top
of my head, but clearly any place that winds up in dbxout_symbol.


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