From c38c91dadb370654e8d87ebe20d6778ffa2e2ff2 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 17 Mar 1994 00:49:30 +0000 Subject: [PATCH] * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly. --- gas/ChangeLog | 4 +++- gas/config/tc-hppa.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 220e741de42..c87f1891a8d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -15,10 +15,12 @@ Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Wed Mar 16 11:54:12 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly. + * config/tc-hppa.c (pa_callinfo): Accept "millicode" as an argument to a .callinfo directive. Don't loop forever on errors. - * config/tc-hppa.c (pa_reg): Use pa_parse_number so that we can + * config/tc-hppa.c (pa_equ): Use pa_parse_number so that we can use pre-defined registers as arguments. Mon Mar 14 14:29:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com) diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 82af7a0f881..f87710f435f 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 -- 2.30.2