Skip to content

Fix deprecated bison pure and verbose errors directives

Witold Baryluk requested to merge baryluk/mesa:yacc-fix-deprecated into master

Fixes this bison / compiler issue:

[71/1444] Generating glsl_parser with a custom command.
../../src/compiler/glsl/glsl_parser.yy:84.1-12: warning: deprecated directive, use ‘%define api.pure’ [-Wdeprecated]
   84 | %pure-parser
      | ^~~~~~~~~~~~
../../src/compiler/glsl/glsl_parser.yy:85.1-14: warning: deprecated directive, use ‘%define parse.error verbose’ [-Wdeprecated]
   85 | %error-verbose
      | ^~~~~~~~~~~~~~
../../src/compiler/glsl/glsl_parser.yy: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]

Replace deprecated %pure-parse with %define api.pure full Replace deprecated %errors-verbose with %define parse.error verbose

These do affect calling conventions for yyparse, and parse error handlers signatures, but these parsers are already using them.

Supported since Bison 2.7 (~2012).

src/intel/tools/i965_gram.y left untouched, as it is not using re-entrant parser at the moment.

Signed-off-by: Witold Baryluk witold.baryluk@gmail.com

Merge request reports