]> git.saurik.com Git - bison.git/blobdiff - src/bison.s1
Typos in ChangeLog.
[bison.git] / src / bison.s1
index bc656245c136985826dda4f0a4c5447af428c3ea..aee33e27fe327aca9587eeef3cefbc216649b140 100644 (file)
@@ -558,10 +558,16 @@ yydefault:
 yyreduce:
   /* yyn is the number of a rule to reduce with.  */
   yylen = yyr2[yyn];
-  /* Implement default value of the action:
-     `{dollar}{dollar} = {dollar}1'. */
-  if (yylen > 0)
-      yyval = yyvsp[1-yylen];
+
+  /* If YYLEN is nonzero, implement the default value of the action:
+     `{dollar}{dollar} = {dollar}1'.
+
+     Otherwise, the following line sets YYVAL to the semantic value of
+     the lookahead token.  This behavior is undocumented and Bison
+     users should not rely upon it.  Assigning to YYVAL
+     unconditionally makes the parser a bit smaller, and it avoids a
+     GCC warning that YYVAL may be used uninitialized.  */
+  yyval = yyvsp[1-yylen];
 #ifdef YYLSP_NEEDED
   /* Implement default location.  If the rhs is empty, extend YYLOC to
      YYLLOC, which corresponds to the current token, otherwise