aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-05-30 21:06:14 +0000
committerThiemo Seufer <ths@networkno.de>2002-05-30 21:06:14 +0000
commitdef2e0dd82c4b17f3e9a07f7fd130a42c5789f65 (patch)
treeeadf1209af3b6783198ba6bda7b6228b5965cfbb /gas/config/tc-mips.c
parent258093ca1ec9fce6464a6746b39271c16b7343a0 (diff)
downloadgdb-def2e0dd82c4b17f3e9a07f7fd130a42c5789f65.zip
gdb-def2e0dd82c4b17f3e9a07f7fd130a42c5789f65.tar.gz
gdb-def2e0dd82c4b17f3e9a07f7fd130a42c5789f65.tar.bz2
* config/tc-mips.c (mips_gprel_offset): New variable.
(s_gpvalue): Use it.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 89a5931..0e683a6 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -423,6 +423,7 @@ static offsetT mips_cprestore_offset = -1;
static offsetT mips_cpreturn_offset = -1;
static int mips_cpreturn_register = -1;
static int mips_gp_register = GP;
+static int mips_gprel_offset = 0;
/* Whether mips_cprestore_offset has been set in the current function
(or whether it has already been warned about, if not). */
@@ -11786,7 +11787,7 @@ s_gpvalue (ignore)
return;
}
- mips_cpreturn_offset = get_absolute_expression ();
+ mips_gprel_offset = get_absolute_expression ();
demand_empty_rest_of_line ();
}