This is the mail archive of the gcc-patches@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: [tree-ssa] Death to WFL nodes


On Wed, 15 Jan 2003, Neil Booth wrote:

> At present, the front end and middle end are too intertwined to do this
> properly.  Further, a bison parser doesn't allow you to get the correct
> location for most things, I think, since adding the necessary actions
> would introduce a gazillion shift / reduce conflicts.  You might be able
> to do it with a lot of ugly hacks outside the actions.

Bison has direct support for each syntax production to have a location as
well as a value; see the Bison manual.  (There is some performance
impact.)

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