aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-28 16:42:02 +0000
committerNick Clifton <nickc@redhat.com>2008-01-28 16:42:02 +0000
commite36ea2deae43832a148ed5ef19ca125704b7a7b4 (patch)
treef333ed35680266a90e60b933ad53f5a048d35f42 /binutils
parenta0a21afef580d360d994a31c353ceb3ad664ed89 (diff)
downloadgdb-e36ea2deae43832a148ed5ef19ca125704b7a7b4.zip
gdb-e36ea2deae43832a148ed5ef19ca125704b7a7b4.tar.gz
gdb-e36ea2deae43832a148ed5ef19ca125704b7a7b4.tar.bz2
PR binutils/5529
* rclex.c (yylex): Also allow the hypen character.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/rclex.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1147143..3d89c3a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-28 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/5529
+ * rclex.c (yylex): Also allow the hypen character.
+
2008-01-28 H.J. Lu <hongjiu.lu@intel.com>
* dwarf.c: Include "elf/common.h".
@@ -78,8 +83,9 @@
2008-01-08 Kai Tietz <kai.tietz@onevision.com>
+ PR binutils/5529
* binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
- characters for name tokens. PR/5529.
+ characters for name tokens.
2008-01-04 Greg McGary <greg@mcgary.org>
diff --git a/binutils/rclex.c b/binutils/rclex.c
index 29f365f..4fae3da 100644
--- a/binutils/rclex.c
+++ b/binutils/rclex.c
@@ -847,7 +847,7 @@ yylex (void)
while ((ch = rclex_peekch ()) != -1
&& (ISIDNUM (ch) || ch == '$' || ch == '.'
|| ch == ':' || ch == '\\' || ch == '/'
- || ch == '_')
+ || ch == '_' || ch == '-')
)
rclex_readch ();
ch = IGNORE_CPP (rclex_translatekeyword (rclex_tok));