FreeBSD Bugzilla – Attachment 153163 Details for
Bug 197810
devel/armv6-freebsd10.0-xdev: fix undefined behavior in gas's tc-arm.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro
devel__armv6-freebsd10.0-xdev-fix-gas-rotate-1.diff (text/plain), 1.24 KB, created by
Dimitry Andric
on 2015-02-18 21:03:47 UTC
(
hide
)
Description:
Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-02-18 21:03:47 UTC
Size:
1.24 KB
patch
obsolete
>Index: devel/armv6-freebsd10.0-xdev/files/patch-contrib_binutils_gas_config_tc-arm.c >=================================================================== >--- devel/armv6-freebsd10.0-xdev/files/patch-contrib_binutils_gas_config_tc-arm.c (revision 0) >+++ devel/armv6-freebsd10.0-xdev/files/patch-contrib_binutils_gas_config_tc-arm.c (working copy) >@@ -0,0 +1,11 @@ >+--- ./contrib/binutils/gas/config/tc-arm.c.orig 2014-01-16 21:40:13.000000000 +0100 >++++ ./contrib/binutils/gas/config/tc-arm.c 2015-02-18 21:57:22.653597000 +0100 >+@@ -6060,7 +6060,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 % 32) | v >> ((32 - n) % 32)) >+ >+ /* If VAL can be encoded in the immediate field of an ARM instruction, >+ return the encoded form. Otherwise, return FAIL. */ > >Property changes on: devel/armv6-freebsd10.0-xdev/files/patch-contrib_binutils_gas_config_tc-arm.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197810
: 153163