bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {maint} yacc.c: initialize yylval in pure-parser mode


From: Paul Eggert
Subject: Re: {maint} yacc.c: initialize yylval in pure-parser mode
Date: Fri, 31 Aug 2012 11:04:59 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 08/31/2012 09:02 AM, Akim Demaille wrote:
> I would very much like to have your opinion on this regard.
> yacc.c has never initialized yylval, and this can actually
> trigger warnings from GCC in some situations.

I have some qualms about putting in initializations just
to pacify GCC.  But I'm afraid I don't have enough context
to be precise about my qualms.  So I hope you don't mind if
I ask a few questions....

Why aren't these warnings valid warnings?  That is, why don't
they indicate real bugs in the generated parser, where it
does not initialize a value that it's supposed to?

Does the proposed patch cause the parser to behave
differently from before?  Is there some way that we
can characterize those differences, so that we can
document the new behavior?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]