From d2cefe8543797ce8640e2c5625933fc10593d2e7 Mon Sep 17 00:00:00 2001 From: David Howells Date: May 31 2012 10:12:20 +0000 Subject: Fixed a warning in the assembler for h8300 that caused the build to fail. --- diff --git a/.gitignore b/.gitignore index 69c9f1f..2770e1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/binutils-2.22.52.0.1.tar.bz2 /binutils-2.22.52.0.3.tar.xz diff --git a/binutils-2.22.52.0.3-fix-signedness-warning.patch b/binutils-2.22.52.0.3-fix-signedness-warning.patch new file mode 100644 index 0000000..544be93 --- /dev/null +++ b/binutils-2.22.52.0.3-fix-signedness-warning.patch @@ -0,0 +1,20 @@ +--- gas/config/tc-h8300.c.signedness~ 2012-05-07 18:08:33.000000000 +0100 ++++ gas/config/tc-h8300.c 2012-05-30 21:26:20.668415305 +0100 +@@ -359,7 +359,7 @@ + static char *skip_colonthing (char *, int *); + static char *parse_exp (char *, struct h8_op *); + +-static int constant_fits_width_p (struct h8_op *, unsigned int); ++static int constant_fits_width_p (struct h8_op *, offsetT); + static int constant_fits_size_p (struct h8_op *, int, int); + + /* +@@ -561,7 +561,7 @@ + @@aa[:8] memory indirect. */ + + static int +-constant_fits_width_p (struct h8_op *operand, unsigned int width) ++constant_fits_width_p (struct h8_op *operand, offsetT width) + { + offsetT num; + diff --git a/cross-binutils.spec b/cross-binutils.spec index eb5269d..3f2dade 100644 --- a/cross-binutils.spec +++ b/cross-binutils.spec @@ -64,6 +64,8 @@ Patch08: binutils-2.22.52.0.1-relro-on-by-default.patch # Local patch - export demangle.h with the binutils-devel rpm. Patch09: binutils-2.22.52.0.1-export-demangle.h.patch +Patch100: binutils-2.22.52.0.3-fix-signedness-warning.patch + Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: texinfo >= 4.0, gettext, flex, bison, zlib-devel # Required for: ld-bootstrap/bootstrap.exp bootstrap with --static @@ -168,6 +170,8 @@ cd %{srcdir} %endif %patch09 -p0 -b .export-demangle-h~ +%patch100 -p0 -b .signedness~ + # We cannot run autotools as there is an exact requirement of autoconf-2.59. # On ppc64 we might use 64KiB pages @@ -572,6 +576,7 @@ rm -rf %{buildroot} %changelog * Wed May 30 2012 David Howells - 2.22.52.0.3-1 - Update to binutils-2.22.52.0.3. +- Fixed a warning in the assembler for h8300 that caused the build to fail. * Thu Mar 22 2012 David Howells - 2.22.52.0.1-8.1 - Initial import of cross-binutils [BZ 761619].