This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can I comment out a GTY variable?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Apr 2005 14:35:53 -0400
- Subject: Re: Can I comment out a GTY variable?
- References: <20050418181109.GA16934@lucon.org>
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