From 36cf9fefa25ec1545c2dd26a8b58a3b791e3fceb Mon Sep 17 00:00:00 2001 From: David Howells Date: Feb 08 2016 15:43:14 +0000 Subject: Fix warning in nios2 --- diff --git a/cross-binutils-2.26-nios2-warn.patch b/cross-binutils-2.26-nios2-warn.patch new file mode 100644 index 0000000..39de35e --- /dev/null +++ b/cross-binutils-2.26-nios2-warn.patch @@ -0,0 +1,12 @@ +diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c +--- a/gas/config/tc-nios2.c ++++ b/gas/config/tc-nios2.c +@@ -1128,7 +1128,7 @@ nios2_check_overflow (valueT fixup, reloc_howto_type *howto) + if ((fixup & 0x80000000) > 0) + { + /* Check for negative overflow. */ +- if ((signed) fixup < ((signed) ~0 << (howto->bitsize-1))) ++ if ((signed) fixup < ((signed) ~0 << (howto->bitsize-1))) + return TRUE; + } + else diff --git a/cross-binutils.spec b/cross-binutils.spec index 3f16de0..e43185e 100644 --- a/cross-binutils.spec +++ b/cross-binutils.spec @@ -98,6 +98,7 @@ Patch18: binutils-2.26-fix-compile-warnings.patch Patch100: cross-binutils-2.25-fixup-for-sh64.patch Patch101: cross-binutils-2.26-fixup-microblaze.patch Patch102: cross-binutils-2.26-ia64-warn.patch +Patch103: cross-binutils-2.26-nios2-warn.patch Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: texinfo >= 4.0, gettext, flex, bison, zlib-devel @@ -238,6 +239,7 @@ cd %{srcdir} %patch100 -p1 -b .sh64-fixup~ %patch101 -p1 -b .microblaze-fixup~ %patch102 -p1 -b .ia64-warn~ +%patch103 -p1 -b .nios2-warn~ # We cannot run autotools as there is an exact requirement of autoconf-2.59.