From aeeb8b2ca125d0348072dba9b266dca8bd98e1e4 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 2 Apr 2014 17:32:05 -0700 Subject: [PATCH] parse: note "@perf" as a built-in - Add "@perf" to lexer::atwords for macro-conflict warnings. - Don't bother with any --compatible check. --- parse.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/parse.cxx b/parse.cxx index c89497059..a8065b774 100644 --- a/parse.cxx +++ b/parse.cxx @@ -1384,6 +1384,7 @@ lexer::lexer (istream& input, const string& in, systemtap_session& s): atwords.insert("@cast"); atwords.insert("@defined"); atwords.insert("@entry"); + atwords.insert("@perf"); atwords.insert("@var"); atwords.insert("@avg"); atwords.insert("@count"); @@ -3749,10 +3750,6 @@ expression* parser::parse_entry_op (const token* t) expression* parser::parse_perf_op (const token* t) { perf_op* pop = new perf_op; - - if (strverscmp(session.compatible.c_str(), "2.1") < 0) - throw PARSE_ERROR (_("expected @cast, @var or $var")); - pop->tok = t; expect_op("("); pop->operand = parse_literal_string (); -- 2.43.5