Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/include/opcode Left shift of negative...



details:   https://anonhg.NetBSD.org/src/rev/44d2a76ae931
branches:  trunk
changeset: 813087:44d2a76ae931
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jan 15 00:18:19 2016 +0000

description:
Left shift of negative values is UB, just write the constant out.

diffstat:

 external/gpl3/gdb/dist/include/opcode/ppc.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6311f74d77ba -r 44d2a76ae931 external/gpl3/gdb/dist/include/opcode/ppc.h
--- a/external/gpl3/gdb/dist/include/opcode/ppc.h       Thu Jan 14 22:31:17 2016 +0000
+++ b/external/gpl3/gdb/dist/include/opcode/ppc.h       Fri Jan 15 00:18:19 2016 +0000
@@ -277,7 +277,7 @@
 /* Use with the shift field of a struct powerpc_operand to indicate
      that BITM and SHIFT cannot be used to determine where the operand
      goes in the insn.  */
-#define PPC_OPSHIFT_INV (-1 << 31)
+#define PPC_OPSHIFT_INV (-0x80000000)
 
 /* Values defined for the flags field of a struct powerpc_operand.  */
 



Home | Main Index | Thread Index | Old Index