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]

Re: Can I comment out a GTY variable?



On Apr 18, 2005, at 2:11 PM, H. J. Lu wrote:


I am trying to comment out

static GTY (()) int foo = 0;

with

#if 0
static GTY (()) int foo = 0;
#endif

But I got an error saying something like

./gt....h:44: error: foo undeclared here (not in a function)

Is that expected? How can I comment it out?

Yes, gengtype does not read through preprocessor directives. Comment it out like a normal comment and not using preprocessor directives.

Thanks,
Andrew Pinski


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