Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Merge upstream d840c0...



details:   https://anonhg.NetBSD.org/src/rev/a482b8cae701
branches:  trunk
changeset: 333891:a482b8cae701
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Nov 20 21:44:56 2014 +0000

description:
Merge upstream d840c081f8082e8b9e63fead5306643975a97bb3 to fix
UB as seen by a clang compiled as.

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-arm.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 566db4aa5c5a -r a482b8cae701 external/gpl3/binutils/dist/gas/config/tc-arm.c
--- a/external/gpl3/binutils/dist/gas/config/tc-arm.c   Thu Nov 20 21:18:47 2014 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-arm.c   Thu Nov 20 21:44:56 2014 +0000
@@ -6936,7 +6936,7 @@
 
 /* Functions for operand encoding.  ARM, then Thumb.  */
 
-#define rotate_left(v, n) (v << n | v >> (32 - n))
+#define rotate_left(v, n) (v << (n & 31) | v >> ((32 - n) & 31))
 
 /* If VAL can be encoded in the immediate field of an ARM instruction,
    return the encoded form.  Otherwise, return FAIL.  */



Home | Main Index | Thread Index | Old Index