Skip to content

Commit 2715a4c

Browse files
Jiri Olsagregkh
authored andcommitted
perf tools: Use %define api.pure full instead of %pure-parser
commit fc8c0a9 upstream. bison deprecated the "%pure-parser" directive in favor of "%define api.pure full". The api.pure got introduced in bison 2.3 (Oct 2007), so it seems safe to use it without any version check. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Clark Williams <williams@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lore.kernel.org/lkml/20200112192259.GA35080@krava Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 799f02f commit 2715a4c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tools/perf/util/expr.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#define MAXIDLEN 256
1313
%}
1414

15-
%pure-parser
15+
%define api.pure full
16+
1617
%parse-param { double *final_val }
1718
%parse-param { struct parse_ctx *ctx }
1819
%parse-param { const char **pp }

tools/perf/util/parse-events.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%pure-parser
1+
%define api.pure full
22
%parse-param {void *_parse_state}
33
%parse-param {void *scanner}
44
%lex-param {void* scanner}

0 commit comments

Comments
 (0)