[PATCH] Modification of lexer and parser, improving dtc portability.

Lukasz Wojcik zbr at semihalf.com
Thu Feb 4 20:42:27 EST 2010


On 01.02.2010 05:46, David Gibson wrote:
> On Fri, Jan 29, 2010 at 05:31:51PM +0100, Lukasz Wojcik wrote:
>    
>> This mod allows successful build of dtc using both bison/flex and
>> yacc/lex.
>>      
> Hrm.  This will enable dtc to build with both bison and yacc, however,
> it will sacrifice the (much) more useful error messages that
> %locations gives us on bison.  So I'm not very happy to do this
> unconditionally.
>
>    
Would you be so kind, and possibly point me out where exactly the 
differences
between error messages before and after applying this patch lies ? I did 
some
testing around dtc being compiled using:

yacc - 1.9 20070509 on Fedora, kernel 2.6.31.5-127.fc12.i686.PAE
and
bison (GNU Bison) 2.4.1, same system.

I was not able to notice any difference. Thanks in advance.

Lukasz.



More information about the devicetree-discuss mailing list