bugGNU troff - Bugs: bug #54666, [PATCH] pic.ypp: useless rule in...


bug #54666: [PATCH] pic.ypp: useless rule in parser due to conflicts

Submitted by:  Bjarni Ingi Gislason <bjarniig>
Submitted on:  Sat 15 Sep 2018 11:03:11 PM UTC  
Category:  Preprocessor pic Severity:  3 - Normal
Item Group:  Build/Installation Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 04 Nov 2018 08:01:26 PM UTC, comment #2: 

  I use "bison" (GNU Bison 3.0.4) as the Linux kernel uses that.

Bjarni Ingi Gislason <bjarniig>
Sun 04 Nov 2018 05:33:29 PM UTC, comment #1: 

I don't get the same output, and I'm using gcc 8.2.0 (on Debian testing).

Maybe the issue is the byacc version?

$ byacc -V
byacc - 1.9 20140715

  YACC     src/preproc/pic/pic.cpp
  YACC     src/preproc/refer/label.cpp
byacc: 2 shift/reduce conflicts.
updating src/preproc/pic/pic.output

G. Branden Robinson <gbranden>
Project Administrator
Sat 15 Sep 2018 11:03:11 PM UTC, original submission:  

From 78d27b370c61a65ede2c7a8d3bb4c130a729dff3 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Sat, 15 Sep 2018 22:17:13 +0000
Subject: [PATCH] pic.ypp: useless rule in parser due to conflicts

  Output from "make" with gcc-8.2.0:

  YACC     src/preproc/pic/pic.cpp
  YACC     src/preproc/refer/label.cpp
.../groff/src/preproc/pic/pic.ypp:1391.11-1396.17: warning: rule useless in parser due to conflicts [-Wother]
         | ORDINAL LAST object_type relative_path

  The test seems to be of no concern and may thus be removed.
Otherwise, those who know what this means and is about, should replace
it with a correct test.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
src/preproc/pic/pic.ypp | 6 ------
1 file changed, 6 deletions(-)

diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index 54ff44ab..a09b7ec2 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -1388,12 +1388,6 @@ path:
         /* The rest of these rules are a compatibility sop. */
-        | ORDINAL LAST object_type relative_path
-                {
-                  lex_warning("'%1%2 last %3' in 'with' argument ignored",
-                              $1, ordinal_postfix($1), object_type_name($3));
-                  $$ = $4;
-                }
         | LAST object_type relative_path
                   lex_warning("'last %1' in 'with' argument ignored",

Bjarni Ingi Gislason <bjarniig>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-04 gbranden StatusNone => Need Info

    Back to the top

    Powered by Savane 3.5