From: Thiemo Seufer Date: Fri, 31 May 2002 02:20:04 +0000 (+0000) Subject: * config/tc-mips.c (s_cpsetup): Fix initialization of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8024528581c01bb27440b3b324127d5964f0ac1b;p=binutils-gdb.git * config/tc-mips.c (s_cpsetup): Fix initialization of mips_cpreturn_register and mips_cpreturn_offset. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a5a20470d9a..d5452d0990e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 92789e70634..1b738b5fad5 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 != ',') {