summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-08-14 20:00:32 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-08-14 20:00:32 +0000
commitc68012fb328c6cace0319750ceffcb5fe3ebbd77 (patch)
tree0f8f1415c7cbbd7c4fc4afd8b26378e5616c8fee /gas/expr.c
parent8aefe91ac764a9acc58d0e8a93857230adefaaa3 (diff)
downloadbinutils-c68012fb328c6cace0319750ceffcb5fe3ebbd77.tar.gz
binutils-c68012fb328c6cace0319750ceffcb5fe3ebbd77.tar.bz2
binutils-c68012fb328c6cace0319750ceffcb5fe3ebbd77.zip
2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
* expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as a label, not a hex constant. This patch was approved by Nick Clifton.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 6d98a3456ac..4258868f81c 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -811,6 +811,9 @@ operand (expressionP)
#ifdef LITERAL_PREFIXDOLLAR_HEX
case '$':
+ /* $L is the start of a local label, not a hex constant. */
+ if (* input_line_pointer == 'L')
+ goto isname;
integer_constant (16, expressionP);
break;
#endif