From: H.J. Lu Date: Tue, 15 Sep 2009 17:53:40 +0000 (+0000) Subject: 2009-09-15 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05203043766029ac32e5faded4ea116b94e9e0ac;p=binutils-gdb.git 2009-09-15 H.J. Lu * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if disp == -disp. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 98b1d602bb7..564c6a6a37d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2009-09-15 H.J. Lu + + * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if + disp == -disp. + 2009-09-14 Nick Clifton * po/nl.po: Updated Dutch translation. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 30fdf9f752b..e6b80497d4d 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11107,7 +11107,7 @@ OP_E_memory (int bytemode, int sizeflag) *obufp++ = '+'; *obufp = '\0'; } - else if (modrm.mod != 1) + else if (modrm.mod != 1 && disp != -disp) { *obufp++ = '-'; *obufp = '\0';