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: module level flags


Bruce Korb <bkorb@pacbell.net> writes:

> On which platform?  The answer is:  it depends.
> On my particular platform, the compliler "t_word".
> It has previously seen, "typedef int t_word;".
> On my Solaris 2.8 box, it would be a 64 bit sized bucket.

It sounds like your yacc source file is missing a %union directive.  If
you add one and make the corresponding changes to your source code, I
believe that gcc will understand what you're intending to do because the
result will be correct C code.

This was how I was taught to write yacc parsers nearly ten years ago.
It's certainly not a new concept.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


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