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

Help with TREE_PUBLIC


Hi all,

 I'm writing a plugin that simply prints the IDENTIFIER NODE of global
variable references in the given program. I am using TREE_PUBLIC to
check if the current variable being accessed is a global one. However
it is working for integer and float variables but doesn't seem to work
for data structures that are declared global. Can somebody please help
me in identifying data structures that are global and catch their
names.

Thanks,
Ajay.


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