pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/binutils-gold-git: import gdb-8.0nb20171029



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Oct 29 18:15:53 2017 +0100
Changeset:	e11400d05c2367f7d69a47dca72763caeb7a0741

Added Files:
	binutils-gold-git/DESCR
	binutils-gold-git/Makefile
	binutils-gold-git/PLIST
	binutils-gold-git/distinfo
	binutils-gold-git/options.mk
	binutils-gold-git/patches/patch-gdb_amd64-linux-tdep.c
	binutils-gold-git/patches/patch-gdb_arm-tdep.c
	binutils-gold-git/patches/patch-gdb_common_common-utils.c
	binutils-gold-git/patches/patch-gdb_common_common-utils.h
	binutils-gold-git/patches/patch-gdb_cris-tdep.c
	binutils-gold-git/patches/patch-gdb_dwarf2read.c
	binutils-gold-git/patches/patch-gdb_utils.h
	binutils-gold-git/patches/patch-opcodes_arc-nps400-tbl.h
	binutils-gold-git/patches/patch-opcodes_riscv-dis.c
	binutils-gold-git/patches/patch-readline_misc.c
	binutils-gold-git/patches/patch-readline_rltty.c
	binutils-gold-git/patches/patch-readline_terminal.c
	binutils-gold-git/patches/patch-readline_util.c

Log Message:
wip/binutils-gold-git: import gdb-8.0nb20171029

   The purpose of a debugger such as GDB is to allow you to see what
is going on "inside" another program while it executes--or what
another program was doing at the moment it crashed.

   GDB can do four main kinds of things (plus other things in support
of these) to help you catch bugs in the act:

   * Start your program, specifying anything that might affect its
     behavior.

   * Make your program stop on specified conditions.

   * Examine what has happened, when your program has stopped.

   * Change things in your program, so you can experiment with
     correcting the effects of one bug and go on to learn about
     another.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e11400d05c2367f7d69a47dca72763caeb7a0741

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 binutils-gold-git/DESCR                            | 17 ++++
 binutils-gold-git/Makefile                         | 97 ++++++++++++++++++++++
 binutils-gold-git/PLIST                            | 51 ++++++++++++
 binutils-gold-git/distinfo                         | 18 ++++
 binutils-gold-git/options.mk                       | 13 +++
 .../patches/patch-gdb_amd64-linux-tdep.c           | 13 +++
 binutils-gold-git/patches/patch-gdb_arm-tdep.c     | 22 +++++
 .../patches/patch-gdb_common_common-utils.c        | 16 ++++
 .../patches/patch-gdb_common_common-utils.h        | 14 ++++
 binutils-gold-git/patches/patch-gdb_cris-tdep.c    | 22 +++++
 binutils-gold-git/patches/patch-gdb_dwarf2read.c   | 22 +++++
 binutils-gold-git/patches/patch-gdb_utils.h        | 17 ++++
 .../patches/patch-opcodes_arc-nps400-tbl.h         | 22 +++++
 .../patches/patch-opcodes_riscv-dis.c              | 13 +++
 binutils-gold-git/patches/patch-readline_misc.c    | 13 +++
 binutils-gold-git/patches/patch-readline_rltty.c   | 15 ++++
 .../patches/patch-readline_terminal.c              | 14 ++++
 binutils-gold-git/patches/patch-readline_util.c    | 13 +++
 18 files changed, 412 insertions(+)

diffs:
diff --git a/binutils-gold-git/DESCR b/binutils-gold-git/DESCR
new file mode 100644
index 0000000000..c7c2207693
--- /dev/null
+++ b/binutils-gold-git/DESCR
@@ -0,0 +1,17 @@
+   The purpose of a debugger such as GDB is to allow you to see what
+is going on "inside" another program while it executes--or what
+another program was doing at the moment it crashed.
+
+   GDB can do four main kinds of things (plus other things in support
+of these) to help you catch bugs in the act:
+
+   * Start your program, specifying anything that might affect its
+     behavior.
+
+   * Make your program stop on specified conditions.
+
+   * Examine what has happened, when your program has stopped.
+
+   * Change things in your program, so you can experiment with
+     correcting the effects of one bug and go on to learn about
+     another.
diff --git a/binutils-gold-git/Makefile b/binutils-gold-git/Makefile
new file mode 100644
index 0000000000..4282d68f7b
--- /dev/null
+++ b/binutils-gold-git/Makefile
@@ -0,0 +1,97 @@
+# $NetBSD: Makefile,v 1.11 2015/03/15 14:22:19 bsiegert Exp $
+#
+
+DISTNAME=	gdb-8.0
+CATEGORIES=	devel
+GIT_REPOSITORIES=	gdb
+#GIT_REPO.gdb=		git://sourceware.org/git/binutils-gdb.git # broken?
+#GIT_REPO.gdb=		http://sourceware.org/git/binutils-gdb.git # broken?
+GIT_REPO.gdb=		https://github.com/wallento/binutils-gdb.git
+#GIT_DEEP_CLONE.gdb=	yes # server dies on shallow clones
+WRKSRC=         ${WRKDIR}/gdb
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.gnu.org/software/gdb/gdb.html
+COMMENT=	Symbolic debugger for multiple language frontends
+LICENSE=	gnu-gpl-v3
+
+# No code for DragonFly in GDB
+NOT_FOR_PLATFORM+=	DragonFly-*-*
+
+USE_LANGUAGES=		c c++11
+
+GNU_CONFIGURE=		YES
+USE_PKGLOCALEDIR=	YES
+USE_LIBTOOL=		YES
+USE_TOOLS+=		gmake msgfmt makeinfo perl:build
+REPLACE_LOCALEDIR_PATTERNS+=	Make-in
+INSTALL_TARGET=		install install-info
+TEST_TARGET=		check
+INFO_FILES=		yes
+CONFIGURE_ENV+=		CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
+
+CONFIGURE_ARGS+=	--disable-binutils
+CONFIGURE_ARGS+=	--disable-gprof
+CONFIGURE_ARGS+=	--disable-gold
+CONFIGURE_ARGS+=	--disable-gas
+CONFIGURE_ARGS+=	--disable-ld
+CONFIGURE_ARGS+=	--enable-targets=all
+
+INSTALL_DIRS=		gdb
+
+# In gdb/configure, depcomp is parsed with sed.
+SUBST_CLASSES+=			fix-depcomp
+SUBST_STAGE.fix-depcomp+=	pre-configure
+SUBST_MESSAGE.fix-depcomp+=	Read depcomp directly
+SUBST_FILES.fix-depcomp+=	gdb/configure
+SUBST_SED.fix-depcomp+=		-e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
+
+AUTO_MKDIRS=		yes
+
+.include "options.mk"
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+=	gcore gdbserver
+
+.if ${OPSYS} == "SunOS"
+# Work around a bug in gdb's configure
+CONFIGURE_ENV+=		ac_cv_header_curses_h=yes
+.elif ${OPSYS} == "NetBSD"
+.include "../../mk/curses.buildlink3.mk"
+CONFIGURE_ARGS+= -with-curses
+CONFIGURE_ENV+= gdb_cv_var_elf=yes
+MAKE_ENV+= gdb_cv_var_elf=yes
+CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
+MAKE_ENV+= gdb_cv_struct_lwp=yes
+PLIST.gcore=	YES
+.elif !empty(OPSYS:MLinux)
+PLIST.gcore=		YES
+PLIST.gdbserver=	YES
+.endif
+
+# TEST_DEPENDS
+BUILD_DEPENDS+=	dejagnu-[0-9]*:../../devel/dejagnu
+
+check-base:
+	${RUN}${_ULIMIT_CMD} cd ${TEST_DIRS} && ${TEST_MAKE_CMD} -j1 check TESTS="gdb.base/*.exp"
+
+post-install:
+	${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
+#
+# PATH of libiberty.a differs between clang and gcc: (and conflicts to other toolchain)
+# Rename to avoid conflict to native and other toolchain
+# and clang differs its path so, (the same as avr-binutils).
+
+	(cd ${DESTDIR}${PREFIX};				\
+	for d in ${MACHINE_ARCH}/libiberty.a libiberty.a;	\
+	  do if [ -f lib/$$d ]; then				\
+		${MV}	lib/$$d	 lib/gdb/libiberty.a;		\
+		break;						\
+	     fi;						\
+	  done;	)
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/termcap.buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/binutils-gold-git/PLIST b/binutils-gold-git/PLIST
new file mode 100644
index 0000000000..a15baae570
--- /dev/null
+++ b/binutils-gold-git/PLIST
@@ -0,0 +1,51 @@
+@comment $NetBSD: PLIST.common,v 1.6 2015/03/15 14:22:19 bsiegert Exp $
+bin/gdb
+${PLIST.gcore}bin/gcore
+${PLIST.gdbserver}bin/gdbserver
+include/gdb/jit-reader.h
+info/annotate.info
+info/gdb.info
+info/stabs.info
+man/man1/gdb.1
+man/man1/gdbserver.1
+man/man5/gdbinit.5
+share/gdb/python/gdb/FrameDecorator.py
+share/gdb/python/gdb/FrameIterator.py
+share/gdb/python/gdb/__init__.py
+share/gdb/python/gdb/command/__init__.py
+share/gdb/python/gdb/command/explore.py
+share/gdb/python/gdb/command/frame_filters.py
+share/gdb/python/gdb/command/pretty_printers.py
+share/gdb/python/gdb/command/prompt.py
+share/gdb/python/gdb/command/type_printers.py
+share/gdb/python/gdb/command/unwinders.py
+share/gdb/python/gdb/command/xmethods.py
+share/gdb/python/gdb/frames.py
+share/gdb/python/gdb/function/__init__.py
+share/gdb/python/gdb/function/as_string.py
+share/gdb/python/gdb/function/caller_is.py
+share/gdb/python/gdb/function/strfns.py
+share/gdb/python/gdb/printer/__init__.py
+share/gdb/python/gdb/printer/bound_registers.py
+share/gdb/python/gdb/printing.py
+share/gdb/python/gdb/prompt.py
+share/gdb/python/gdb/types.py
+share/gdb/python/gdb/unwinder.py
+share/gdb/python/gdb/xmethod.py
+share/gdb/syscalls/aarch64-linux.xml
+share/gdb/syscalls/amd64-linux.xml
+share/gdb/syscalls/arm-linux.xml
+share/gdb/syscalls/freebsd.xml
+share/gdb/syscalls/gdb-syscalls.dtd
+share/gdb/syscalls/i386-linux.xml
+share/gdb/syscalls/mips-n32-linux.xml
+share/gdb/syscalls/mips-n64-linux.xml
+share/gdb/syscalls/mips-o32-linux.xml
+share/gdb/syscalls/ppc-linux.xml
+share/gdb/syscalls/ppc64-linux.xml
+share/gdb/syscalls/s390-linux.xml
+share/gdb/syscalls/s390x-linux.xml
+share/gdb/syscalls/sparc-linux.xml
+share/gdb/syscalls/sparc64-linux.xml
+share/gdb/system-gdbinit/elinos.py
+share/gdb/system-gdbinit/wrs-linux.py
diff --git a/binutils-gold-git/distinfo b/binutils-gold-git/distinfo
new file mode 100644
index 0000000000..090a1cec70
--- /dev/null
+++ b/binutils-gold-git/distinfo
@@ -0,0 +1,18 @@
+$NetBSD: distinfo,v 1.10 2015/03/15 14:22:19 bsiegert Exp $
+
+SHA1 (gdb-7.9.tar.gz) = 8f89aa6847dc87de2f720779a87ba360bdbc7efd
+RMD160 (gdb-7.9.tar.gz) = 939dda771a073e82e7d72fd584246f3d1d8e9bdc
+Size (gdb-7.9.tar.gz) = 33225783 bytes
+SHA1 (patch-gdb_amd64-linux-tdep.c) = 289591103c1c855faa9ad9a05b137693461d8b73
+SHA1 (patch-gdb_arm-tdep.c) = 80b1b0cbc92a48933d2693578d8fe151555edc3b
+SHA1 (patch-gdb_common_common-utils.c) = 52b07c9e85dc7a5b88616a569ea6f45af5d47b07
+SHA1 (patch-gdb_common_common-utils.h) = bac642bb6cb8eab24a124a910033fda0b0d94117
+SHA1 (patch-gdb_cris-tdep.c) = c36f9087d8b475c09c12065159aeaa9c89e0c46f
+SHA1 (patch-gdb_dwarf2read.c) = 3a03c815afaf114ffb6e5bd3c448ee31652f4e08
+SHA1 (patch-gdb_utils.h) = 93c471220b00a2bd43f7a2fab685e02c9ed0e122
+SHA1 (patch-opcodes_arc-nps400-tbl.h) = b67ca002dad0ea3d9c66537dd698ea8aee7280a4
+SHA1 (patch-opcodes_riscv-dis.c) = 950e1bc58c6c092c6e3c8f7eef1b6f9723afd6dd
+SHA1 (patch-readline_misc.c) = 395af9b11895da9abd0b9fcd4dbeb9156324e9b0
+SHA1 (patch-readline_rltty.c) = 38b3ae6e1cda6a02a43bfb0ba8d105abc977f54d
+SHA1 (patch-readline_terminal.c) = 1d4568977342abe74af84225702d024b9bda8065
+SHA1 (patch-readline_util.c) = ca054b5adca7669f29048cedd667279f28dfd07d
diff --git a/binutils-gold-git/options.mk b/binutils-gold-git/options.mk
new file mode 100644
index 0000000000..cb3f82a608
--- /dev/null
+++ b/binutils-gold-git/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2014/06/21 04:01:01 thomasklausner Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.gdb
+PKG_SUPPORTED_OPTIONS=	python
+PKG_SUGGESTED_OPTIONS=	python
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+=	--with-python=${PYTHONBIN}
+PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36
+.include "../../lang/python/application.mk"
+.endif
diff --git a/binutils-gold-git/patches/patch-gdb_amd64-linux-tdep.c b/binutils-gold-git/patches/patch-gdb_amd64-linux-tdep.c
new file mode 100644
index 0000000000..32603fa825
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_amd64-linux-tdep.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- gdb/amd64-linux-tdep.c.orig	2017-09-11 11:24:04.000000000 +0000
++++ gdb/amd64-linux-tdep.c
+@@ -363,7 +363,7 @@ amd64_all_but_ip_registers_record (struc
+ static enum gdb_syscall
+ amd64_canonicalize_syscall (enum amd64_syscall syscall_number)
+ {
+-  switch (syscall_number) {
++  switch ((uint64_t)syscall_number) {
+   case amd64_sys_read:
+   case amd64_x32_sys_read:
+     return gdb_sys_read;
diff --git a/binutils-gold-git/patches/patch-gdb_arm-tdep.c b/binutils-gold-git/patches/patch-gdb_arm-tdep.c
new file mode 100644
index 0000000000..6ced8ad989
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_arm-tdep.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- gdb/arm-tdep.c.orig	2017-09-11 11:24:04.000000000 +0000
++++ gdb/arm-tdep.c
+@@ -10057,7 +10057,7 @@ arm_record_extension_space (insn_decode_
+       && !INSN_RECORDED(arm_insn_r))
+     {
+       /* Handle MLA(S) and MUL(S).  */
+-      if (0 <= insn_op1 && 3 >= insn_op1)
++      if (3 >= insn_op1)
+       {
+         record_buf[0] = bits (arm_insn_r->arm_insn, 12, 15);
+         record_buf[1] = ARM_PS_REGNUM;
+@@ -11766,7 +11766,7 @@ thumb_record_ld_st_reg_offset (insn_deco
+           record_buf[0] = reg_src1;
+           thumb_insn_r->reg_rec_count = 1;
+         }
+-      else if (opB >= 0 && opB <= 2)
++      else if (opB <= 2)
+         {
+           /* STR(2), STRB(2), STRH(2) .  */
+           reg_src1 = bits (thumb_insn_r->arm_insn, 3, 5);
diff --git a/binutils-gold-git/patches/patch-gdb_common_common-utils.c b/binutils-gold-git/patches/patch-gdb_common_common-utils.c
new file mode 100644
index 0000000000..65c54db37c
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_common_common-utils.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- gdb/common/common-utils.c.orig	2017-09-11 23:07:52.000000000 +0000
++++ gdb/common/common-utils.c
+@@ -126,8 +126,10 @@ char *
+ xstrvprintf (const char *format, va_list ap)
+ {
+   char *ret = NULL;
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+   int status = vasprintf (&ret, format, ap);
+-
++#pragma GCC diagnostic pop
+   /* NULL is returned when there was a memory allocation problem, or
+      any other error (for instance, a bad format string).  A negative
+      status (the printed length) with a non-NULL buffer should never
diff --git a/binutils-gold-git/patches/patch-gdb_common_common-utils.h b/binutils-gold-git/patches/patch-gdb_common_common-utils.h
new file mode 100644
index 0000000000..1e9e614a1a
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_common_common-utils.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- gdb/common/common-utils.h.orig	2017-09-11 23:07:52.000000000 +0000
++++ gdb/common/common-utils.h
+@@ -52,8 +52,7 @@ void xfree (void *);
+ /* Like asprintf and vasprintf, but return the string, throw an error
+    if no memory.  */
+ char *xstrprintf (const char *format, ...) ATTRIBUTE_PRINTF (1, 2);
+-char *xstrvprintf (const char *format, va_list ap)
+-     ATTRIBUTE_PRINTF (1, 0);
++char *xstrvprintf (const char *format, va_list ap);
+ 
+ /* Like snprintf, but throw an error if the output buffer is too small.  */
+ int xsnprintf (char *str, size_t size, const char *format, ...)
diff --git a/binutils-gold-git/patches/patch-gdb_cris-tdep.c b/binutils-gold-git/patches/patch-gdb_cris-tdep.c
new file mode 100644
index 0000000000..e4b8bd0895
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_cris-tdep.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- gdb/cris-tdep.c.orig	2017-09-11 11:24:04.000000000 +0000
++++ gdb/cris-tdep.c
+@@ -1434,7 +1434,7 @@ cris_spec_reg_applicable (struct gdbarch
+       /* Indeterminate/obsolete.  */
+       return 0;
+     case cris_ver_v0_3:
+-      return (version >= 0 && version <= 3);
++      return (version <= 3);
+     case cris_ver_v3p:
+       return (version >= 3);
+     case cris_ver_v8:
+@@ -1442,7 +1442,7 @@ cris_spec_reg_applicable (struct gdbarch
+     case cris_ver_v8p:
+       return (version >= 8);
+     case cris_ver_v0_10:
+-      return (version >= 0 && version <= 10);
++      return (version <= 10);
+     case cris_ver_v3_10:
+       return (version >= 3 && version <= 10);
+     case cris_ver_v8_10:
diff --git a/binutils-gold-git/patches/patch-gdb_dwarf2read.c b/binutils-gold-git/patches/patch-gdb_dwarf2read.c
new file mode 100644
index 0000000000..d05a548f48
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_dwarf2read.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- gdb/dwarf2read.c.orig	2017-09-11 11:24:04.000000000 +0000
++++ gdb/dwarf2read.c
+@@ -22098,7 +22098,7 @@ dwarf_decode_macro_bytes (bfd *abfd,
+ 
+       /* Note that we rely on the fact that the corresponding GNU and
+ 	 DWARF constants are the same.  */
+-      switch (macinfo_type)
++      switch ((uint64_t)macinfo_type)
+ 	{
+ 	  /* A zero macinfo type indicates the end of the macro
+ 	     information.  */
+@@ -22415,7 +22415,7 @@ dwarf_decode_macros (struct dwarf2_cu *c
+ 
+       /* Note that we rely on the fact that the corresponding GNU and
+ 	 DWARF constants are the same.  */
+-      switch (macinfo_type)
++      switch ((uint64_t)macinfo_type)
+         {
+           /* A zero macinfo type indicates the end of the macro
+              information.  */
diff --git a/binutils-gold-git/patches/patch-gdb_utils.h b/binutils-gold-git/patches/patch-gdb_utils.h
new file mode 100644
index 0000000000..420cef8b40
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gdb_utils.h
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- gdb/utils.h.orig	2017-09-11 11:24:05.000000000 +0000
++++ gdb/utils.h
+@@ -349,10 +349,9 @@ extern void printf_filtered (const char 
+ 
+ extern void printfi_filtered (int, const char *, ...) ATTRIBUTE_PRINTF (2, 3);
+ 
+-extern void vprintf_unfiltered (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);
++extern void vprintf_unfiltered (const char *, va_list);
+ 
+-extern void vfprintf_unfiltered (struct ui_file *, const char *, va_list)
+-  ATTRIBUTE_PRINTF (2, 0);
++extern void vfprintf_unfiltered (struct ui_file *, const char *, va_list);
+ 
+ extern void fprintf_unfiltered (struct ui_file *, const char *, ...)
+   ATTRIBUTE_PRINTF (2, 3);
diff --git a/binutils-gold-git/patches/patch-opcodes_arc-nps400-tbl.h b/binutils-gold-git/patches/patch-opcodes_arc-nps400-tbl.h
new file mode 100644
index 0000000000..c3aa86f9d0
--- /dev/null
+++ b/binutils-gold-git/patches/patch-opcodes_arc-nps400-tbl.h
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- opcodes/arc-nps400-tbl.h.orig	2017-09-11 11:24:05.000000000 +0000
++++ opcodes/arc-nps400-tbl.h
+@@ -980,13 +980,13 @@ ASRI_LIKE (0x4, C_NPS_GIC)
+ /* Atomic Operations.  */
+ 
+ /* exc<.di><.f> a,a,[xa:b] */
+-{ "exc", 0x48060c21, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XA, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
++{ "exc", 0x48060c21, 0xf80fbfff, ARC_OPCODE_ARC700, (insn_class_t)NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XA, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
+ 
+ /* exc<.di><.f> a,a,[sd:b] */
+-{ "exc", 0x48060c61, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_SD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
++{ "exc", 0x48060c61, 0xf80fbfff, ARC_OPCODE_ARC700, (insn_class_t)NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_SD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
+ 
+ /* exc<.di><.f> a,a,[xd:b] */
+-{ "exc", 0x48060c81, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
++{ "exc", 0x48060c81, 0xf80fbfff, ARC_OPCODE_ARC700, (insn_class_t)NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
+ 
+ /* exc<.di><.f> a,a,[b] */
+-{ "exc", 0x48060c01, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
++{ "exc", 0x48060c01, 0xf80fbfff, ARC_OPCODE_ARC700, (insn_class_t)NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
diff --git a/binutils-gold-git/patches/patch-opcodes_riscv-dis.c b/binutils-gold-git/patches/patch-opcodes_riscv-dis.c
new file mode 100644
index 0000000000..b15475460f
--- /dev/null
+++ b/binutils-gold-git/patches/patch-opcodes_riscv-dis.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- opcodes/riscv-dis.c.orig	2017-09-11 11:24:05.000000000 +0000
++++ opcodes/riscv-dis.c
+@@ -428,7 +428,7 @@ riscv_disassemble_insn (bfd_vma memaddr,
+ 	  if (no_aliases && (op->pinfo & INSN_ALIAS))
+ 	    continue;
+ 	  /* Is this instruction restricted to a certain value of XLEN?  */
+-	  if (isdigit (op->subset[0]) && atoi (op->subset) != xlen)
++	  if (isdigit ((unsigned char)op->subset[0]) && atoi (op->subset) != xlen)
+ 	    continue;
+ 
+ 	  /* It's a match.  */
diff --git a/binutils-gold-git/patches/patch-readline_misc.c b/binutils-gold-git/patches/patch-readline_misc.c
new file mode 100644
index 0000000000..e1ac17c4df
--- /dev/null
+++ b/binutils-gold-git/patches/patch-readline_misc.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- readline/misc.c.orig	2017-09-11 11:24:05.000000000 +0000
++++ readline/misc.c
+@@ -453,7 +453,7 @@ _rl_revert_all_lines ()
+   entry = (hpos == history_length) ? previous_history () : current_history ();
+   while (entry)
+     {
+-      if (ul = (UNDO_LIST *)entry->data)
++      if ((ul = (UNDO_LIST *)entry->data))
+ 	{
+ 	  if (ul == saved_undo_list)
+ 	    saved_undo_list = 0;
diff --git a/binutils-gold-git/patches/patch-readline_rltty.c b/binutils-gold-git/patches/patch-readline_rltty.c
new file mode 100644
index 0000000000..46735a2ead
--- /dev/null
+++ b/binutils-gold-git/patches/patch-readline_rltty.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- readline/rltty.c.orig	2017-09-11 11:24:05.000000000 +0000
++++ readline/rltty.c
+@@ -31,6 +31,10 @@
+ #include <errno.h>
+ #include <stdio.h>
+ 
++//#if defined (HAVE_SYS_IOCTL_H)
++#  include <sys/ioctl.h>
++//#endif /* HAVE_UNISTD_H *
++
+ #if defined (HAVE_UNISTD_H)
+ #  include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
diff --git a/binutils-gold-git/patches/patch-readline_terminal.c b/binutils-gold-git/patches/patch-readline_terminal.c
new file mode 100644
index 0000000000..e8dfdb6c57
--- /dev/null
+++ b/binutils-gold-git/patches/patch-readline_terminal.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- readline/terminal.c.orig	2017-09-11 11:24:05.000000000 +0000
++++ readline/terminal.c
+@@ -28,6 +28,9 @@
+ #include <sys/types.h>
+ #include "posixstat.h"
+ #include <fcntl.h>
++// #ifdef HAVE_SYS_IOCTL_H
++#include <sys/ioctl.h>
++// #endif
+ #if defined (HAVE_SYS_FILE_H)
+ #  include <sys/file.h>
+ #endif /* HAVE_SYS_FILE_H */
diff --git a/binutils-gold-git/patches/patch-readline_util.c b/binutils-gold-git/patches/patch-readline_util.c
new file mode 100644
index 0000000000..b70421f373
--- /dev/null
+++ b/binutils-gold-git/patches/patch-readline_util.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- readline/util.c.orig	2017-09-11 11:24:05.000000000 +0000
++++ readline/util.c
+@@ -517,7 +517,7 @@ _rl_tropen ()
+ 	    : "."),
+ 	   getpid());
+ #else
+-  sprintf (fnbuf, "/var/tmp/rltrace.%ld", getpid());
++  sprintf (fnbuf, "/var/tmp/rltrace.%ld", (long)getpid());
+ #endif
+   unlink(fnbuf);
+   _rl_tracefp = fopen (fnbuf, "w+");


Home | Main Index | Thread Index | Old Index