This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: d10v: don't silently turn @-r# into @-sp


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]