diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-01-27 07:49:45 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-01-27 07:49:45 +0000 |
commit | e164a344f177b8f435dcbe1a9e3c87033818e445 (patch) | |
tree | 62ae42f4b7004c2ecf9ff7caa0c798fc867c3cb2 /devel/binutils/files/patch-gas_config_tc-arm.c | |
parent | - Update to 4.1.0 (diff) |
Revert update to binutils 2.25.1 and bump portepoch to reflect that revert
binutils has build issues on 10.x i386 and is full of regressions on 9.x:
unexpected build failures on nss and others
Reported by: antoine
Pointyhat to: bapt
Notes
Notes:
svn path=/head/; revision=407342
Diffstat (limited to 'devel/binutils/files/patch-gas_config_tc-arm.c')
-rw-r--r-- | devel/binutils/files/patch-gas_config_tc-arm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/binutils/files/patch-gas_config_tc-arm.c b/devel/binutils/files/patch-gas_config_tc-arm.c new file mode 100644 index 000000000000..1c599ef88d54 --- /dev/null +++ b/devel/binutils/files/patch-gas_config_tc-arm.c @@ -0,0 +1,17 @@ +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.orig 2014-10-14 09:32:03.000000000 +0200 ++++ gas/config/tc-arm.c 2015-02-18 21:13:40.720573000 +0100 +@@ -7251,7 +7251,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. */ |