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
commit7ee41708bce2b8d906b5e4b235a4d8693c8e4a54 (patch)
tree16700ecaf193aea1b7638c08d873a5ccfd4a79e3 /gas/expr.c
parent0a6dc59f2c8ab909cc72b5902fbb64e1c6acd689 (diff)
downloadbinutils-redhat-7ee41708bce2b8d906b5e4b235a4d8693c8e4a54.tar.gz
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 6d98a3456a..4258868f81 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