diff options
author | Alexey Neyman <stilor@att.net> | 2017-12-02 23:30:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-02 23:30:38 (GMT) |
commit | d917a29865876b913fe2939ee2a0728145e8543a (patch) | |
tree | 4e048ed57988306696efa3c5b81a80d48030e913 /packages/binutils/2.25.1/400-arm-rotate_left-fix.patch | |
parent | e832b9b220f90b11b893e2815ceb37ec2b708683 (diff) | |
parent | 98bc4decdeab1361bdc585c86591718fb08c8ffb (diff) |
Merge pull request #874 from stilor/renumber-update-patches
Renumber & update patches
Diffstat (limited to 'packages/binutils/2.25.1/400-arm-rotate_left-fix.patch')
-rw-r--r-- | packages/binutils/2.25.1/400-arm-rotate_left-fix.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/binutils/2.25.1/400-arm-rotate_left-fix.patch b/packages/binutils/2.25.1/400-arm-rotate_left-fix.patch deleted file mode 100644 index 4149597..0000000 --- a/packages/binutils/2.25.1/400-arm-rotate_left-fix.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d840c081f8082e8b9e63fead5306643975a97bb3 Mon Sep 17 00:00:00 2001 -From: Richard Earnshaw <Richard.Earnshaw@arm.com> -Date: Thu, 20 Nov 2014 17:02:47 +0000 -Subject: [PATCH] * config/tc-arm.c (rotate_left): Avoid undefined behaviour - when N = 0. - ---- - gas/config/tc-arm.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletion(-) - -diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c -index 5077f87..9100fb2 100644 ---- a/gas/config/tc-arm.c -+++ b/gas/config/tc-arm.c -@@ -7251,7 +7251,7 @@ parse_operands (char *str, const unsigned int *pattern, bfd_boolean thumb) - - /* 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. */ --- -1.9.4 - |