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

Local binding DECLs


Given a set of functions such as:
void a(void)
{
	static void b(void);
	static void c(char);
	static char d[20];

	b();
	c(d[0]);
}

b() {}
c(char aa) {}

... when TARGET_ASM_FUNCTION_PROLOGUE is called on 'a', is there any way
to access the DECLs of b, c, and d, and only those, that is, the DECLs
of all the forward declarations in the scope of this function?  I tried
searching through the list given by getdecls but came up with the DECLs
at the same level as a, that is, the GLOBAL binding level, and not
locally subordinate to a.

Is this even possible at this stage?

Thanks for any help.




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