aboutsummaryrefslogtreecommitdiff
path: root/binutils/deflex.l
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-13 10:16:43 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-13 10:16:43 +0000
commitd7ec8102d915a3d515a42008965d49dd1b617b7a (patch)
treeee08b9f0effe33dcd53cb191f45fa0c68ddef763 /binutils/deflex.l
parent3e2699126a6d93df5a878b0437781200cadfc0bc (diff)
downloadgdb-d7ec8102d915a3d515a42008965d49dd1b617b7a.zip
gdb-d7ec8102d915a3d515a42008965d49dd1b617b7a.tar.gz
gdb-d7ec8102d915a3d515a42008965d49dd1b617b7a.tar.bz2
* defparse.y (explist): Remove separate expline to eliminate
shift/reduce conflict. From Kai-Uwe Rommel <rommel@ars.de>: * defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE, INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL. (command): Add option_list after LIBRARY. (attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE. (option_list, option): New nonterminals. * deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
Diffstat (limited to 'binutils/deflex.l')
-rw-r--r--binutils/deflex.l9
1 files changed, 8 insertions, 1 deletions
diff --git a/binutils/deflex.l b/binutils/deflex.l
index e7fa362..928c42c 100644
--- a/binutils/deflex.l
+++ b/binutils/deflex.l
@@ -1,6 +1,6 @@
%{/* deflex.l - Lexer for .def files */
-/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -50,6 +50,13 @@ int linenumber;
"WRITE" { return WRITE;}
"EXECUTE" { return EXECUTE;}
"SHARED" { return SHARED;}
+"NONSHARED" { return NONSHARED;}
+"SINGLE" { return SINGLE;}
+"MULTIPLE" { return MULTIPLE;}
+"INITINSTANCE" { return INITINSTANCE;}
+"INITGLOBAL" { return INITGLOBAL;}
+"TERMINSTANCE" { return TERMINSTANCE;}
+"TERMGLOBAL" { return TERMGLOBAL;}
[0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
return NUMBER; }