From 8024528581c01bb27440b3b324127d5964f0ac1b Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Fri, 31 May 2002 02:20:04 +0000 Subject: [PATCH] * config/tc-mips.c (s_cpsetup): Fix initialization of mips_cpreturn_register and mips_cpreturn_offset. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a5a2047..d5452d0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2002-05-31 Thiemo Seufer + * config/tc-mips.c (s_cpsetup): Fix initialization of + mips_cpreturn_register and mips_cpreturn_offset. + +2002-05-31 Thiemo Seufer + * config/tc-mips.c (s_cpsetup): Fix comment. 2002-05-31 Thiemo Seufer diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 92789e7..1b738b5 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -11876,12 +11876,18 @@ s_cpsetup (ignore) return; } else - input_line_pointer++; + ++input_line_pointer; SKIP_WHITESPACE (); if (*input_line_pointer == '$') - mips_cpreturn_register = tc_get_register (0); + { + mips_cpreturn_register = tc_get_register (0); + mips_cpreturn_offset = -1; + } else - mips_cpreturn_offset = get_absolute_expression (); + { + mips_cpreturn_offset = get_absolute_expression (); + mips_cpreturn_register = -1; + } SKIP_WHITESPACE (); if (*input_line_pointer != ',') { -- 2.7.4