This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: attributes in function arguments broken
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 16 Jan 2002 11:50:27 +0000 (GMT)
- Subject: Re: attributes in function arguments broken
On Tue, 15 Jan 2002, Aldy Hernandez wrote:
> p.s. the grammar looks correct (parmlist, maybe_attribute, etc). how
> does one generally go about debugging this?
Start by being familiar with how LALR(1) parsers work. Then build the
parser with bison -d and study the .output file.
> #define blah __attribute__(__mode__(SI))
The argument of __attribute__ is double-parenthesised (so you want
"__attribute__((__mode__(SI)))").
--
Joseph S. Myers
jsm28@cam.ac.uk