This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: 2.22.1 Possible -> Yes!
On 04/26/2012 03:29 PM, Tristan Gingold wrote:
If anyone has patches to backport, please speak up.
These are the 2 patches, I would like to see applied for RTEMS, Joel
mentioned before.
Both are raw backports from trunk.
*-1.diff is the coldfire patch.
*-2.diff addresses build-issues.
Without it, binutils-2.22 fails to build for me on mingw-w64 hosts.
Ralf
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 0631572..befd58f 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -8,6 +8,12 @@
* gas/mips/relax-swap3.s: New test source.
* gas/mips/mips.exp: Run the new tests.
+2011-10-24 Julian Brown <julian@codesourcery.com>
+
+ * gas/m68k/all.exp (movem-offset): Add test.
+ * gas/m68k/movem-offset.s: New test.
+ * gas/m68k/movem-offset.d: New.
+
2011-10-25 Alan Modra <amodra@gmail.com>
Apply mainline patches
diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp
index bf06d4e..6035286 100644
--- a/gas/testsuite/gas/m68k/all.exp
+++ b/gas/testsuite/gas/m68k/all.exp
@@ -52,6 +52,8 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
run_dump_test mcf-movsr
run_dump_test mode5
run_dump_test mode5 "{name {cf}} {as {-mcpu=5200}}"
+ run_dump_test movem-offset
+ run_dump_test movem-offset "{name {cf}} {as {-mcpu=5485}}"
run_dump_test mcf-mac
run_dump_test mcf-emac
run_dump_test mcf-coproc
diff --git a/gas/testsuite/gas/m68k/movem-offset.d b/gas/testsuite/gas/m68k/movem-offset.d
new file mode 100644
index 0000000..6d2769c
--- /dev/null
+++ b/gas/testsuite/gas/m68k/movem-offset.d
@@ -0,0 +1,14 @@
+#name: movem-offset
+#objdump: -d
+#as:
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0+ <.text>:
+ 0: 4cee 047c ffe8 moveml %fp@\(-24\),%d2-%d6/%a2
+ 6: 48ee 047c 0010 moveml %d2-%d6/%a2,%fp@\(16\)
+ c: 4cee 03ff ffe8 moveml %fp@\(-24\),%d0-%a1
+ 12: 48ee 03ff 0010 moveml %d0-%a1,%fp@\(16\)
+ \.\.\.
diff --git a/gas/testsuite/gas/m68k/movem-offset.s b/gas/testsuite/gas/m68k/movem-offset.s
new file mode 100644
index 0000000..f5f317d
--- /dev/null
+++ b/gas/testsuite/gas/m68k/movem-offset.s
@@ -0,0 +1,8 @@
+
+ | Check that non-zero displacements work for movem.
+ .text
+ movem.l -24(%a6),#1148
+ movem.l #1148,16(%a6)
+ movem.l -24(%a6),%d0-%d7/%a0-%a1
+ movem.l %d0-%d7/%a0-%a1,16(%a6)
+ .p2align 4
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a445030..7b02727 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-24 Julian Brown <julian@codesourcery.com>
+
+ * m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml.
+
2011-10-27 Peter Bergner <bergner@vnet.ibm.com>
* ppc-opc.c (powerpc_opcodes) <drrndq, drrndq., dtstexq, dctqpq,
diff --git a/opcodes/m68k-opc.c b/opcodes/m68k-opc.c
index 9463668..3c8310a 100644
--- a/opcodes/m68k-opc.c
+++ b/opcodes/m68k-opc.c
@@ -1553,10 +1553,10 @@ const struct m68k_opcode m68k_opcodes[] =
{"moveml", 4, one(0044300), one(0177700), "#w>s", m68000up },
{"moveml", 4, one(0046300), one(0177700), "<sLw", m68000up },
{"moveml", 4, one(0046300), one(0177700), "<s#w", m68000up },
-{"moveml", 4, one(0044320), one(0177770), "Lwys", mcfisa_a },
-{"moveml", 4, one(0044320), one(0177770), "#wys", mcfisa_a },
-{"moveml", 4, one(0046320), one(0177770), "ysLw", mcfisa_a },
-{"moveml", 4, one(0046320), one(0177770), "ys#w", mcfisa_a },
+{"moveml", 4, one(0044300), one(0177700), "Lwys", mcfisa_a },
+{"moveml", 4, one(0044300), one(0177700), "#wys", mcfisa_a },
+{"moveml", 4, one(0046300), one(0177700), "ysLw", mcfisa_a },
+{"moveml", 4, one(0046300), one(0177700), "ys#w", mcfisa_a },
{"movepw", 2, one(0000410), one(0170770), "dsDd", m68000up },
{"movepw", 2, one(0000610), one(0170770), "Ddds", m68000up },
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2f5af61..87200d2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,25 @@
+2012-02-09 Alan Modra <amodra@gmail.com>
+
+ * sysdep.h: Include sys/stat.h here.
+ * ar.c: Don't include headers already included by sysdep.h.
+ * bucomm.c: Likewise.
+ * budbg.h: Likewise.
+ * dlltool.h: Likewise.
+ * elfedit.c: Likewise.
+ * nlmconv.c: Likewise.
+ * objcopy.c: Likewise.
+ * objdump.c: Likewise.
+ * objdump.h: Likewise.
+ * readelf.c: Likewise.
+ * rename.c: Likewise.
+ * resrc.c: Likewise.
+ * strings.c: Likewise.
+ * windres.c: Likewise.
+ * od-xcoff.c: Likewise.
+ * dllwrap.c: Remove alloca pragma handled by sysdep.h, and
+ remove duplicate headers.
+ * dlltool.c: Likewise and ensure #include sysdep.h is first.
+
2011-10-25 Alan Modra <amodra@gmail.com>
Apply mainline patches
diff --git a/binutils/ar.c b/binutils/ar.c
index 22be2cd..14bbfa3 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -37,7 +37,6 @@
#include "filenames.h"
#include "binemul.h"
#include "plugin.h"
-#include <sys/stat.h>
#ifdef __GO32___
#define EXT_NAME_LEN 3 /* Bufflen of addition to name if it's MS-DOS. */
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 9977b50..2ca7030 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -1,6 +1,6 @@
/* bucomm.c -- Bin Utils COMmon code.
Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002,
- 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -29,7 +29,6 @@
#include "filenames.h"
#include "libbfd.h"
-#include <sys/stat.h>
#include <time.h> /* ctime, maybe time_t */
#include <assert.h>
#include "bucomm.h"
diff --git a/binutils/budbg.h b/binutils/budbg.h
index b9de022..b87defb 100644
--- a/binutils/budbg.h
+++ b/binutils/budbg.h
@@ -1,5 +1,5 @@
/* budbg.c -- Interfaces to the generic debugging information routines.
- Copyright 1995, 1996, 2002, 2003, 2005, 2007, 2008
+ Copyright 1995, 1996, 2002, 2003, 2005, 2007, 2008, 2012
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
@@ -23,8 +23,6 @@
#ifndef BUDBG_H
#define BUDBG_H
-#include <stdio.h>
-
/* Routine used to read generic debugging information. */
extern void *read_debugging_info (bfd *, asymbol **, long, bfd_boolean);
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 80aac99..290bd98 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -1,6 +1,6 @@
/* dlltool.c -- tool to generate stuff for PE style DLLs
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -232,15 +232,6 @@
.idata$7 = dll name (eg: "kernel32.dll"). (.idata$6 for ppc). */
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# ifdef _AIX
- #pragma alloca
-#endif
-#endif
-
-#define show_allnames 0
-
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
@@ -252,8 +243,6 @@
#include "safe-ctype.h"
#include <time.h>
-#include <sys/stat.h>
-#include <stdarg.h>
#include <assert.h>
#ifdef DLLTOOL_ARM
@@ -319,6 +308,8 @@ static void mcore_elf_gen_out_file (void);
#endif /* defined (_WIN32) && ! defined (__CYGWIN32__) */
#endif /* ! HAVE_SYS_WAIT_H */
+#define show_allnames 0
+
/* ifunc and ihead data structures: ttk@cygnus.com 1997
When IMPORT declarations are encountered in a .def file the
diff --git a/binutils/dlltool.h b/binutils/dlltool.h
index 35a2280..f3b203b 100644
--- a/binutils/dlltool.h
+++ b/binutils/dlltool.h
@@ -1,5 +1,6 @@
/* dlltool.h -- header file for dlltool
- Copyright 1997, 1998, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright 1997, 1998, 2003, 2004, 2005, 2007, 2009, 2012
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -18,9 +19,6 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-#include "ansidecl.h"
-#include <stdio.h>
-
extern void def_code (int);
extern void def_data (int);
extern void def_description (const char *);
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c
index 4e48f3e..5fb2879 100644
--- a/binutils/dllwrap.c
+++ b/binutils/dllwrap.c
@@ -1,6 +1,6 @@
/* dllwrap.c -- wrapper for DLLTOOL and GCC to generate PE style DLLs
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009
- Free Software Foundation, Inc.
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009,
+ 2011, 2012 Free Software Foundation, Inc.
Contributed by Mumit Khan (khan@xraylith.wisc.edu).
This file is part of GNU Binutils.
@@ -20,13 +20,6 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# ifdef _AIX
- #pragma alloca
-#endif
-#endif
-
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
@@ -35,7 +28,6 @@
#include "bucomm.h"
#include <time.h>
-#include <sys/stat.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
diff --git a/binutils/elfedit.c b/binutils/elfedit.c
index f7bf9e9..d9e23a1 100644
--- a/binutils/elfedit.c
+++ b/binutils/elfedit.c
@@ -1,5 +1,5 @@
/* elfedit.c -- Update the ELF header of an ELF format file
- Copyright 2010
+ Copyright 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -19,10 +19,8 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-#include "config.h"
#include "sysdep.h"
#include <assert.h>
-#include <sys/stat.h>
#if __GNUC__ >= 2
/* Define BFD64 here, even if our default architecture is 32 bit ELF
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 157b41c..64214e7 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -1,6 +1,7 @@
/* nlmconv.c -- NLM conversion program
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -42,8 +43,6 @@
#include "ansidecl.h"
#include <time.h>
-#include <sys/stat.h>
-#include <sys/file.h>
#include <assert.h>
#include "getopt.h"
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 31ac0a2..230d3e5 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1,6 +1,6 @@
/* objcopy.c -- copy object file from input to output, optionally massaging it.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -30,7 +30,6 @@
#include "filenames.h"
#include "fnmatch.h"
#include "elf-bfd.h"
-#include <sys/stat.h>
#include "libbfd.h"
#include "coff/internal.h"
#include "libcoff.h"
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 784ead2..129eef9 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1,7 +1,7 @@
/* objdump.c -- dump information about an object file.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
+ 2012 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -71,8 +71,6 @@
#include <sys/mman.h>
#endif
-#include <sys/stat.h>
-
/* Internal headers for the ELF .stab-dump code - sorry. */
#define BYTES_IN_WORD 32
#include "aout/aout64.h"
diff --git a/binutils/objdump.h b/binutils/objdump.h
index 511898c..939a477 100644
--- a/binutils/objdump.h
+++ b/binutils/objdump.h
@@ -1,5 +1,5 @@
/* objdump.h
- Copyright 2011 Free Software Foundation, Inc.
+ Copyright 2011, 2012 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -18,8 +18,6 @@
Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
-#include <stdio.h>
-
struct objdump_private_option
{
/* Option name. */
diff --git a/binutils/od-xcoff.c b/binutils/od-xcoff.c
index 5b8b589..61bdac4 100644
--- a/binutils/od-xcoff.c
+++ b/binutils/od-xcoff.c
@@ -1,5 +1,5 @@
/* od-xcoff.c -- dump information about an xcoff object file.
- Copyright 2011 Free Software Foundation, Inc.
+ Copyright 2011, 2012 Free Software Foundation, Inc.
Written by Tristan Gingold, Adacore.
This file is part of GNU Binutils.
@@ -19,9 +19,9 @@
Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
+#include "sysdep.h"
#include <stddef.h>
#include <time.h>
-#include "sysdep.h"
#include "safe-ctype.h"
#include "bfd.h"
#include "objdump.h"
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 9e13190..32f52dd 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -42,10 +42,8 @@
ELF file than is provided by objdump. In particular it can display DWARF
debugging information which (at the moment) objdump cannot. */
-#include "config.h"
#include "sysdep.h"
#include <assert.h>
-#include <sys/stat.h>
#include <time.h>
#ifdef HAVE_ZLIB_H
#include <zlib.h>
diff --git a/binutils/rename.c b/binutils/rename.c
index c07150c..5923a3f 100644
--- a/binutils/rename.c
+++ b/binutils/rename.c
@@ -22,8 +22,6 @@
#include "bfd.h"
#include "bucomm.h"
-#include <sys/stat.h>
-
#ifdef HAVE_GOOD_UTIME_H
#include <utime.h>
#else /* ! HAVE_GOOD_UTIME_H */
diff --git a/binutils/resrc.c b/binutils/resrc.c
index 0a14ad2..53b8087 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -32,11 +32,6 @@
#include "windres.h"
#include <assert.h>
-#include <errno.h>
-#include <sys/stat.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
diff --git a/binutils/strings.c b/binutils/strings.c
index 4763512..3eed63a 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -1,6 +1,6 @@
/* strings -- print the strings of printable characters in files
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -65,7 +65,6 @@
#include "getopt.h"
#include "libiberty.h"
#include "safe-ctype.h"
-#include <sys/stat.h>
#include "bucomm.h"
#define STRING_ISGRAPHIC(c) \
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index e573637..0e1d502 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -1,6 +1,6 @@
/* sysdep.h -- handle host dependencies for binutils
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009
+ 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -69,6 +69,10 @@ extern char *strrchr ();
#endif
#endif
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
#include "binary-io.h"
#if !HAVE_DECL_STPCPY
diff --git a/binutils/windres.c b/binutils/windres.c
index b30ced9..7de73ef 100644
--- a/binutils/windres.c
+++ b/binutils/windres.c
@@ -1,6 +1,6 @@
/* windres.c -- a program to manipulate Windows resources
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008,
- 2009, 2011 Free Software Foundation, Inc.
+ 2009, 2011, 2012 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
Rewritten by Kai Tietz, Onevision.
@@ -45,7 +45,6 @@
#include "safe-ctype.h"
#include "obstack.h"
#include "windres.h"
-#include <sys/stat.h>
/* Used by resrc.c at least. */