Update to 2.27

This commit is contained in:
Kalev Lember 2016-08-10 10:10:57 +02:00
parent 766ff1432e
commit 6b73c72b7c
4 changed files with 6 additions and 65 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ binutils-2.20.1.tar.bz2
/binutils-2.24.tar.bz2
/binutils-2.25.tar.bz2
/binutils-2.26.tar.bz2
/binutils-2.27.tar.bz2

View File

@ -1,58 +0,0 @@
From a28def75916fb4fa8280404f8c023adc0773162d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Fri, 18 Dec 2015 14:03:43 -0800
Subject: [PATCH] Process 64-bit imm/disp only for 64-bit BFD
We only need to store 32-bit immediate in 64-bit and optimize 64-bit
displacement to 32-bit only for 64-bit BFD.
* config/tc-i386.c (optimize_imm): Store 32-bit immediate in
64-bit only for 64-bit BFD
(optimize_disp): Optimize 64-bit displacement to 32-bit only
for 64-bit BFD.
---
gas/ChangeLog | 7 +++++++
gas/config/tc-i386.c | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 1573043..4940a80 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4218,6 +4218,8 @@ optimize_imm (void)
i.op[op].imms->X_add_number =
(((i.op[op].imms->X_add_number & 0xffff) ^ 0x8000) - 0x8000);
}
+#ifdef BFD64
+ /* Store 32-bit immediate in 64-bit for 64-bit BFD. */
if ((i.types[op].bitfield.imm32)
&& ((i.op[op].imms->X_add_number & ~(((offsetT) 2 << 31) - 1))
== 0))
@@ -4226,6 +4228,7 @@ optimize_imm (void)
^ ((offsetT) 1 << 31))
- ((offsetT) 1 << 31));
}
+#endif
i.types[op]
= operand_type_or (i.types[op],
smallest_imm_type (i.op[op].imms->X_add_number));
@@ -4306,6 +4309,8 @@ optimize_disp (void)
op_disp = (((op_disp & 0xffff) ^ 0x8000) - 0x8000);
i.types[op].bitfield.disp64 = 0;
}
+#ifdef BFD64
+ /* Optimize 64-bit displacement to 32-bit for 64-bit BFD. */
if (i.types[op].bitfield.disp32
&& (op_disp & ~(((offsetT) 2 << 31) - 1)) == 0)
{
@@ -4316,6 +4321,7 @@ optimize_disp (void)
op_disp = (op_disp ^ ((offsetT) 1 << 31)) - ((addressT) 1 << 31);
i.types[op].bitfield.disp64 = 0;
}
+#endif
if (!op_disp && i.types[op].bitfield.baseindex)
{
i.types[op].bitfield.disp8 = 0;
--
2.5.5

View File

@ -1,7 +1,7 @@
%global run_testsuite 1
Name: mingw-binutils
Version: 2.26
Version: 2.27
Release: 1%{?dist}
Summary: Cross-compiled version of binutils for Win32 and Win64 environments
@ -12,10 +12,6 @@ URL: http://www.gnu.org/software/binutils/
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
#Source0: http://www.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
# Fix the build on i686
# Backported from upstream git master.
Patch0: 0001-Process-64-bit-imm-disp-only-for-64-bit-BFD.patch
BuildRequires: flex
BuildRequires: bison
BuildRequires: texinfo
@ -65,7 +61,6 @@ understand Windows executables and DLLs.
%prep
%setup -q -n binutils-%{version}
%patch0 -p1
%build
@ -254,6 +249,9 @@ rm -rf $RPM_BUILD_ROOT/multilib
%changelog
* Wed Aug 10 2016 Kalev Lember <klember@redhat.com> - 2.27-1
- Update to 2.27
* Tue May 10 2016 Kalev Lember <klember@redhat.com> - 2.26-1
- Update to 2.26

View File

@ -1 +1 @@
64146a0faa3b411ba774f47d41de239f binutils-2.26.tar.bz2
2869c9bf3e60ee97c74ac2a6bf4e9d68 binutils-2.27.tar.bz2