This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: d10v: don't silently turn @-r# into @-sp
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 04 Dec 2001 08:46:25 -0200
- Subject: Re: d10v: don't silently turn @-r# into @-sp
- Organization: GCC Team, Red Hat
- References: <orwv09tsjv.fsf@free.redhat.lsd.ic.unicamp.br>
On Nov 29, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> Index: opcodes/d10v-opc.c
> - { "r15", "sp", OPERAND_GPR+15 },
> + { "r15", "sp", OPERAND_SP|OPERAND_GPR+15 },
> - { "sp", NULL, OPERAND_GPR+15 },
> + { "sp", NULL, OPERAND_SP|OPERAND_GPR+15 },
These hunks introduced warnings :-( This patch removes them :-)
I'm not sure this is the best way to parenthesize the expressions,
though. Ok to install?
Index: opcodes/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* d10v-opc.c (d10v_predefined_registers): Remove warnings
introduced in Nov 29's patch.
Index: opcodes/d10v-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/d10v-opc.c,v
retrieving revision 1.9
diff -u -p -r1.9 d10v-opc.c
--- opcodes/d10v-opc.c 2001/12/04 10:06:50 1.9
+++ opcodes/d10v-opc.c 2001/12/04 10:44:39
@@ -69,7 +69,7 @@ const struct pd_reg d10v_predefined_regi
{ "r13", NULL, OPERAND_GPR+13 },
{ "r14", NULL, OPERAND_GPR+14 },
{ "r14-r15", NULL, OPERAND_GPR+14 },
- { "r15", "sp", OPERAND_SP|OPERAND_GPR+15 },
+ { "r15", "sp", OPERAND_SP|(OPERAND_GPR+15) },
{ "r2", NULL, OPERAND_GPR+2 },
{ "r2-r3", NULL, OPERAND_GPR+2 },
{ "r3", NULL, OPERAND_GPR+3 },
@@ -85,7 +85,7 @@ const struct pd_reg d10v_predefined_regi
{ "rpt_c", NULL, OPERAND_CONTROL+7 },
{ "rpt_e", NULL, OPERAND_CONTROL+9 },
{ "rpt_s", NULL, OPERAND_CONTROL+8 },
- { "sp", NULL, OPERAND_SP|OPERAND_GPR+15 },
+ { "sp", NULL, OPERAND_SP|(OPERAND_GPR+15) },
};
int
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me