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: 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


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