This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Death to WFL nodes
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 15 Jan 2003 21:28:03 +0000 (GMT)
- Subject: 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