aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-17 00:49:30 +0000
committerJeff Law <law@redhat.com>1994-03-17 00:49:30 +0000
commitc38c91dadb370654e8d87ebe20d6778ffa2e2ff2 (patch)
treeb19b89fa199d9803dd70831ae13c4f70e6113dd6 /gas/config
parentae6710bc9822e7abe7a51f594e6d05ecc5f3578b (diff)
downloadgdb-c38c91dadb370654e8d87ebe20d6778ffa2e2ff2.zip
gdb-c38c91dadb370654e8d87ebe20d6778ffa2e2ff2.tar.gz
gdb-c38c91dadb370654e8d87ebe20d6778ffa2e2ff2.tar.bz2
* config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-hppa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 82af7a0..f87710f 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -4489,7 +4489,10 @@ pa_equ (reg)
if (label_symbol)
{
symbol = label_symbol->lss_label;
- S_SET_VALUE (symbol, pa_parse_number (&input_line_pointer, 0));
+ if (reg)
+ S_SET_VALUE (symbol, pa_parse_number (&input_line_pointer, 0));
+ else
+ S_SET_VALUE (symbol, (unsigned int) get_absolute_expression ());
S_SET_SEGMENT (symbol, &bfd_abs_section);
}
else