From patchwork Thu Sep 14 16:37:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 813899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtPXx1K24z9sPs for ; Fri, 15 Sep 2017 02:45:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EB26A8A1F3; Thu, 14 Sep 2017 16:45:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1w0yNlmxRaUd; Thu, 14 Sep 2017 16:45:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 73D498A1E2; Thu, 14 Sep 2017 16:45:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0A8A71CE774 for ; Thu, 14 Sep 2017 16:45:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 02934899CE for ; Thu, 14 Sep 2017 16:45:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0MWpLGiK1Vx0 for ; Thu, 14 Sep 2017 16:45:03 +0000 (UTC) X-Greylist: delayed 00:07:56 by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (smtprelay.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9CF29899D1 for ; Thu, 14 Sep 2017 16:45:03 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id F214A10C123C; Thu, 14 Sep 2017 09:37:06 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id D4B24FE4; Thu, 14 Sep 2017 09:37:06 -0700 (PDT) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 84BF9FCB; Thu, 14 Sep 2017 09:37:05 -0700 (PDT) From: Alexey Brodkin To: buildroot@busybox.net Date: Thu, 14 Sep 2017 19:37:02 +0300 Message-Id: <20170914163702.2316-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.11.0 Cc: Thomas Petazzoni , Alexey Brodkin Subject: [Buildroot] [PATCH] toolchain: Bump ARC tools to arc-2017.09-eng008 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" As with our previous tools releases we're introducing so-called engineering builds prior release candidates and final release. This way we'll stabilize the toolchain much faster and by the time of release most of [at least] build issues should be resolved. Now speaking about arc-2017.09 series it is built on top of upstream GCC 7.1.1 and Binutils 2.29 so please expect all kinds of breakages related to GCC 7.x as we saw earlier with move from 4.8 to 6.x :) Note patches for both GCC and Binutils were updated with copies from corresponding mainline versions, i.e. "package/gcc/7.2.0" and "package/binutils/2.29". Signed-off-by: Alexey Brodkin --- package/binutils/Config.in.host | 2 +- .../0002-ld-makefile.patch} | 10 +- .../0003-check-ldrunpath-length.patch} | 12 +-- .../0004-add-sysroot-fix-from-bug-3049.patch} | 17 ++-- .../0005-poison-system-directories.patch} | 54 +++++----- ...LINKER-BUG-.rofixup-section-size-mismatch.patch | 31 ++++++ package/binutils/binutils.hash | 2 +- package/binutils/binutils.mk | 2 +- package/gcc/Config.in.host | 6 +- .../0001-ARC-Fix-tst_movb-pattern.patch | 55 ---------- .../gcc/arc-2017.03/301-missing-execinfo_h.patch | 13 --- .../arc-2017.03/940-uclinux-enable-threads.patch | 19 ---- .../gcc/arc-2017.09-eng008/0100-uclibc-conf.patch | 29 ++++++ .../0860-cilk-fix-build-without-wchar.patch} | 24 +++-- .../arc-2017.09-eng008/0900-remove-selftests.patch | 111 +++++++++++++++++++++ package/gcc/gcc.hash | 2 +- package/gdb/Config.in.host | 2 +- package/gdb/gdb.hash | 2 +- 18 files changed, 244 insertions(+), 149 deletions(-) rename package/binutils/{arc-2017.03/0300-PATCH-ld-makefile.patch => arc-2017.09-eng008/0002-ld-makefile.patch} (87%) rename package/binutils/{arc-2017.03/0301-PATCH-check-ldrunpath-length.patch => arc-2017.09-eng008/0003-check-ldrunpath-length.patch} (79%) rename package/binutils/{arc-2017.03/0500-add-sysroot-fix-from-bug-3049.patch => arc-2017.09-eng008/0004-add-sysroot-fix-from-bug-3049.patch} (80%) rename package/binutils/{arc-2017.03/0600-poison-system-directories.patch => arc-2017.09-eng008/0005-poison-system-directories.patch} (89%) create mode 100644 package/binutils/arc-2017.09-eng008/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch delete mode 100644 package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch delete mode 100644 package/gcc/arc-2017.03/301-missing-execinfo_h.patch delete mode 100644 package/gcc/arc-2017.03/940-uclinux-enable-threads.patch create mode 100644 package/gcc/arc-2017.09-eng008/0100-uclibc-conf.patch rename package/gcc/{arc-2017.03/860-cilk-wchar.patch => arc-2017.09-eng008/0860-cilk-fix-build-without-wchar.patch} (79%) create mode 100644 package/gcc/arc-2017.09-eng008/0900-remove-selftests.patch diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host index 48d3ea1d74..f7b987d480 100644 --- a/package/binutils/Config.in.host +++ b/package/binutils/Config.in.host @@ -22,7 +22,7 @@ endchoice config BR2_BINUTILS_VERSION string - default "arc-2017.03" if BR2_arc + default "arc-2017.09-eng008" if BR2_arc default "2.27" if BR2_BINUTILS_VERSION_2_27_X default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X default "2.29" if BR2_BINUTILS_VERSION_2_29_X diff --git a/package/binutils/arc-2017.03/0300-PATCH-ld-makefile.patch b/package/binutils/arc-2017.09-eng008/0002-ld-makefile.patch similarity index 87% rename from package/binutils/arc-2017.03/0300-PATCH-ld-makefile.patch rename to package/binutils/arc-2017.09-eng008/0002-ld-makefile.patch index 6b3cd440d1..a7cd71e63c 100644 --- a/package/binutils/arc-2017.03/0300-PATCH-ld-makefile.patch +++ b/package/binutils/arc-2017.09-eng008/0002-ld-makefile.patch @@ -1,6 +1,6 @@ -From 32078014f734430e1c68fe40aaf970b9805ecaf5 Mon Sep 17 00:00:00 2001 +From d4e18ebc6ad810167a2de84b185a5f0d65b9ec2d Mon Sep 17 00:00:00 2001 From: Romain Naour -Date: Fri, 21 Apr 2017 21:19:13 +0300 +Date: Fri, 25 Dec 2015 11:40:53 +0100 Subject: [PATCH] ld-makefile [Romain: rebase on top of 2.26] @@ -11,7 +11,7 @@ Signed-off-by: Romain Naour 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ld/Makefile.am b/ld/Makefile.am -index 9dd31ff..553a107 100644 +index 625347f..d5334d2 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -57,7 +57,7 @@ endif @@ -24,7 +24,7 @@ index 9dd31ff..553a107 100644 EMUL = @EMUL@ EMULATION_OFILES = @EMULATION_OFILES@ diff --git a/ld/Makefile.in b/ld/Makefile.in -index c464302..feb34ba 100644 +index ba25177..a2cf228 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -446,7 +446,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) @@ -37,5 +37,5 @@ index c464302..feb34ba 100644 BFDDIR = $(BASEDIR)/bfd INCDIR = $(BASEDIR)/include -- -2.7.4 +2.9.4 diff --git a/package/binutils/arc-2017.03/0301-PATCH-check-ldrunpath-length.patch b/package/binutils/arc-2017.09-eng008/0003-check-ldrunpath-length.patch similarity index 79% rename from package/binutils/arc-2017.03/0301-PATCH-check-ldrunpath-length.patch rename to package/binutils/arc-2017.09-eng008/0003-check-ldrunpath-length.patch index 9bb23411f6..3fbc5031d1 100644 --- a/package/binutils/arc-2017.03/0301-PATCH-check-ldrunpath-length.patch +++ b/package/binutils/arc-2017.09-eng008/0003-check-ldrunpath-length.patch @@ -1,6 +1,6 @@ -From 4a5a8b983fb31a67f976e0dd9cf5e8580ef55098 Mon Sep 17 00:00:00 2001 +From 3bd211025c890ef2971958915d500a9bb2913a2a Mon Sep 17 00:00:00 2001 From: Romain Naour -Date: Fri, 21 Apr 2017 21:23:55 +0300 +Date: Fri, 25 Dec 2015 11:41:47 +0100 Subject: [PATCH] check-ldrunpath-length [Romain: rebase on top of 2.26] @@ -10,10 +10,10 @@ Signed-off-by: Romain Naour 1 file changed, 4 insertions(+) diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em -index d4837d0..937da8a 100644 +index d2551b6..70fcb56 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em -@@ -1460,6 +1460,8 @@ fragment <link.next) if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) -- -2.7.4 +2.9.4 diff --git a/package/binutils/arc-2017.03/0500-add-sysroot-fix-from-bug-3049.patch b/package/binutils/arc-2017.09-eng008/0004-add-sysroot-fix-from-bug-3049.patch similarity index 80% rename from package/binutils/arc-2017.03/0500-add-sysroot-fix-from-bug-3049.patch rename to package/binutils/arc-2017.09-eng008/0004-add-sysroot-fix-from-bug-3049.patch index 0331088666..9e11840cee 100644 --- a/package/binutils/arc-2017.03/0500-add-sysroot-fix-from-bug-3049.patch +++ b/package/binutils/arc-2017.09-eng008/0004-add-sysroot-fix-from-bug-3049.patch @@ -1,4 +1,4 @@ -From 30628870e583375f8927c04398c7219c6e9f703c Mon Sep 17 00:00:00 2001 +From 378bda0e19d279535b3f4a0e448a658a534a5d67 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Fri, 25 Dec 2015 11:42:48 +0100 Subject: [PATCH] add sysroot fix from bug #3049 @@ -12,13 +12,14 @@ Signed-off-by: Sven Rebhan [Romain: rebase on top of 2.26] Signed-off-by: Romain Naour --- - ld/ldfile.c | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) + ld/ldfile.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) -diff --git a/ld/ldfile.c diff --git b/ld/ldfile.c ---- a/ld/ldfile.c 2017-03-02 03:23:54.000000000 -0500 -+++ b/ld/ldfile.c 2017-03-20 09:52:27.687415942 -0400 -@@ -336,18 +336,24 @@ +diff --git a/ld/ldfile.c b/ld/ldfile.c +index 3b37a0a..f7e5473 100644 +--- a/ld/ldfile.c ++++ b/ld/ldfile.c +@@ -338,18 +338,24 @@ ldfile_open_file_search (const char *arch, directory first. */ if (!entry->flags.maybe_archive) { @@ -45,4 +46,6 @@ diff --git a/ld/ldfile.c diff --git b/ld/ldfile.c return TRUE; if (IS_ABSOLUTE_PATH (entry->filename)) +-- +2.9.4 diff --git a/package/binutils/arc-2017.03/0600-poison-system-directories.patch b/package/binutils/arc-2017.09-eng008/0005-poison-system-directories.patch similarity index 89% rename from package/binutils/arc-2017.03/0600-poison-system-directories.patch rename to package/binutils/arc-2017.09-eng008/0005-poison-system-directories.patch index bb1a7b438c..a7c2761a9d 100644 --- a/package/binutils/arc-2017.03/0600-poison-system-directories.patch +++ b/package/binutils/arc-2017.09-eng008/0005-poison-system-directories.patch @@ -1,4 +1,4 @@ -From be366461dd49e760440fb28eaee5164eb281adcc Mon Sep 17 00:00:00 2001 +From b100e9d16bfe6725b2624902af457ecfa490b150 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Fri, 25 Dec 2015 11:45:38 +0100 Subject: [PATCH] poison-system-directories @@ -78,10 +78,10 @@ Signed-off-by: Scott Garman 9 files changed, 89 insertions(+) diff --git a/ld/config.in b/ld/config.in -index 276fb77..35c58eb 100644 +index 5d91380..ffe84a7 100644 --- a/ld/config.in +++ b/ld/config.in -@@ -17,6 +17,9 @@ +@@ -21,6 +21,9 @@ language is requested. */ #undef ENABLE_NLS @@ -92,10 +92,10 @@ index 276fb77..35c58eb 100644 #undef EXTRA_SHLIB_EXTENSION diff --git a/ld/configure b/ld/configure -index a446283..d1f9504 100755 +index da20ab5..63e3da7 100755 --- a/ld/configure +++ b/ld/configure -@@ -789,6 +789,7 @@ with_lib_path +@@ -785,6 +785,7 @@ with_lib_path enable_targets enable_64_bit_bfd with_sysroot @@ -103,7 +103,7 @@ index a446283..d1f9504 100755 enable_gold enable_got enable_compressed_debug_sections -@@ -1446,6 +1447,8 @@ Optional Features: +@@ -1443,6 +1444,8 @@ Optional Features: --disable-largefile omit support for large files --enable-targets alternative target configurations --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) @@ -112,7 +112,7 @@ index a446283..d1f9504 100755 --enable-gold[=ARG] build gold [ARG={default,yes,no}] --enable-got= GOT handling scheme (target, single, negative, multigot) -@@ -15499,7 +15502,18 @@ else +@@ -15497,7 +15500,18 @@ else fi @@ -132,7 +132,7 @@ index a446283..d1f9504 100755 # Check whether --enable-got was given. if test "${enable_got+set}" = set; then : diff --git a/ld/configure.ac b/ld/configure.ac -index 188172d..2cd8443 100644 +index 34315e6..5ade9a0 100644 --- a/ld/configure.ac +++ b/ld/configure.ac @@ -95,6 +95,16 @@ AC_SUBST(use_sysroot) @@ -153,12 +153,12 @@ index 188172d..2cd8443 100644 dnl "install_as_default" is set to false if gold is the default linker. dnl "installed_linker" is the installed BFD linker name. diff --git a/ld/ld.h b/ld/ld.h -index d84ec4e..3476b26 100644 +index 162e156..7d6d7ef 100644 --- a/ld/ld.h +++ b/ld/ld.h -@@ -172,6 +172,14 @@ typedef struct { - /* If set, display the target memory usage (per memory region). */ - bfd_boolean print_memory_usage; +@@ -177,6 +177,14 @@ typedef struct + in the linker script. */ + bfd_boolean force_group_allocation; + /* If TRUE (the default) warn for uses of system directories when + cross linking. */ @@ -172,10 +172,10 @@ index d84ec4e..3476b26 100644 enum endian_enum endian; diff --git a/ld/ld.texinfo b/ld/ld.texinfo -index 1dd7492..fb1438e 100644 +index bb5f719..78501e4 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo -@@ -2403,6 +2403,18 @@ string identifying the original linked file does not change. +@@ -2480,6 +2480,18 @@ string identifying the original linked file does not change. Passing @code{none} for @var{style} disables the setting from any @code{--build-id} options earlier on the command line. @@ -195,11 +195,11 @@ index 1dd7492..fb1438e 100644 @c man end diff --git a/ld/ldfile.c b/ld/ldfile.c -index 1439309..086b354 100644 +index f7e5473..2cd84d3 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c -@@ -114,6 +114,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline) - new_dirs->name = concat (ld_sysroot, name + 1, (const char *) NULL); +@@ -116,6 +116,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline) + new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL); else new_dirs->name = xstrdup (name); + @@ -223,20 +223,20 @@ index 1439309..086b354 100644 /* Try to open a BFD for a lang_input_statement. */ diff --git a/ld/ldlex.h b/ld/ldlex.h -index 6f11e7b..0ca3110 100644 +index 5aa7f6b..cb655e0 100644 --- a/ld/ldlex.h +++ b/ld/ldlex.h -@@ -146,6 +146,8 @@ enum option_values - OPTION_PRINT_MEMORY_USAGE, +@@ -147,6 +147,8 @@ enum option_values OPTION_REQUIRE_DEFINED_SYMBOL, OPTION_ORPHAN_HANDLING, + OPTION_FORCE_GROUP_ALLOCATION, + OPTION_NO_POISON_SYSTEM_DIRECTORIES, + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES, }; /* The initial parser states. */ diff --git a/ld/ldmain.c b/ld/ldmain.c -index bb0b9cc..a23c56c 100644 +index ee5ab11..5f6effd 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -270,6 +270,8 @@ main (int argc, char **argv) @@ -249,10 +249,10 @@ index bb0b9cc..a23c56c 100644 /* We initialize DEMANGLING based on the environment variable COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the diff --git a/ld/lexsup.c b/ld/lexsup.c -index 4cad209..be7d584 100644 +index 08106bc..d619d50 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c -@@ -535,6 +535,14 @@ static const struct ld_option ld_options[] = +@@ -538,6 +538,14 @@ static const struct ld_option ld_options[] = { {"orphan-handling", required_argument, NULL, OPTION_ORPHAN_HANDLING}, '\0', N_("=MODE"), N_("Control how orphan sections are handled."), TWO_DASHES }, @@ -267,7 +267,7 @@ index 4cad209..be7d584 100644 }; #define OPTION_COUNT ARRAY_SIZE (ld_options) -@@ -547,6 +555,7 @@ parse_args (unsigned argc, char **argv) +@@ -550,6 +558,7 @@ parse_args (unsigned argc, char **argv) int ingroup = 0; char *default_dirlist = NULL; char *shortopts; @@ -275,7 +275,7 @@ index 4cad209..be7d584 100644 struct option *longopts; struct option *really_longopts; int last_optind; -@@ -1528,6 +1537,14 @@ parse_args (unsigned argc, char **argv) +@@ -1534,6 +1543,14 @@ parse_args (unsigned argc, char **argv) } break; @@ -290,7 +290,7 @@ index 4cad209..be7d584 100644 case OPTION_PUSH_STATE: input_flags.pushed = xmemdup (&input_flags, sizeof (input_flags), -@@ -1571,6 +1588,10 @@ parse_args (unsigned argc, char **argv) +@@ -1577,6 +1594,10 @@ parse_args (unsigned argc, char **argv) command_line.soname = NULL; } @@ -302,5 +302,5 @@ index 4cad209..be7d584 100644 { lang_leave_group (); -- -2.4.3 +2.9.4 diff --git a/package/binutils/arc-2017.09-eng008/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch b/package/binutils/arc-2017.09-eng008/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch new file mode 100644 index 0000000000..e5409efe14 --- /dev/null +++ b/package/binutils/arc-2017.09-eng008/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch @@ -0,0 +1,31 @@ +From 122de3b633f4273826a2d01702d7c515f93ec2be Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb +Date: Sat, 29 Jul 2017 14:08:20 +0200 +Subject: [PATCH] Fixes: LINKER BUG: .rofixup section size mismatch + +Workaround from adi-toolchain commit: +af414ec1fb628ddb1562f062f3db49823ca14ca2 +[#6798] binutils-2.21/bfd: temp workaround for rofixup mismatch errors. + +Signed-off-by: Waldemar Brodkorb +--- + bfd/elf32-bfin.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c +index b3e09bd..660eec5 100644 +--- a/bfd/elf32-bfin.c ++++ b/bfd/elf32-bfin.c +@@ -4845,7 +4845,8 @@ bfinfdpic_check_relocs (bfd *abfd, struct bfd_link_info *info, + + case R_BFIN_FUNCDESC: + picrel->fd++; +- picrel->relocsfd++; ++ if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) ++ picrel->relocsfd++; + break; + + /* This relocation describes the C++ object vtable hierarchy. +-- +2.9.4 + diff --git a/package/binutils/binutils.hash b/package/binutils/binutils.hash index 4630a26fef..3a5c42d31a 100644 --- a/package/binutils/binutils.hash +++ b/package/binutils/binutils.hash @@ -4,4 +4,4 @@ sha512 dc5b6872ae01c07c12d38f3bb7ead06effc6da3265ac872e2d9c6104304f89f85f2645b02 sha512 bb227c7af65133a61bbde8be4104a543f4185fce8c8e7be22c36d92d121d28b5413d42f18c7e987d035d6312c542d0e2aaca8930386a4ce26d7c9d7248145398 binutils-2.29.tar.xz # Locally calculated (fetched from Github) -sha512 07d5639e74eafe8fced259870c1a7dedee67c534573dda53fb78ee1ffeec9e17479fdde41dccd03b1cf0248023acbef7f66013398b2f722e4a8891ac680d1d16 binutils-arc-2017.03.tar.gz +sha512 031e896ec421c116d99e9634d3244c06f210a60dd3f09e17fbdb5e01b3a4b7ed52a2e9cc22bd597d6cbaa5b54e04017b5d94c2e3f845a0c3574ad2120b21c0ce binutils-arc-2017.09-eng008.tar.gz diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk index 768f084111..e83b121432 100644 --- a/package/binutils/binutils.mk +++ b/package/binutils/binutils.mk @@ -9,7 +9,7 @@ BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION)) ifeq ($(BINUTILS_VERSION),) ifeq ($(BR2_arc),y) -BINUTILS_VERSION = arc-2017.03 +BINUTILS_VERSION = arc-2017.09-eng008 else BINUTILS_VERSION = 2.28.1 endif diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index ec7b6924ee..5adee38f00 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -9,10 +9,10 @@ choice Select the version of gcc you wish to use. config BR2_GCC_VERSION_ARC - bool "gcc arc (6.x)" + bool "gcc arc (7.x)" # Only supported architecture depends on BR2_arc - select BR2_TOOLCHAIN_GCC_AT_LEAST_6 + select BR2_TOOLCHAIN_GCC_AT_LEAST_7 config BR2_GCC_VERSION_OR1K bool "gcc or1k (5.x)" @@ -88,7 +88,7 @@ config BR2_GCC_VERSION default "5.4.0" if BR2_GCC_VERSION_5_X default "6.4.0" if BR2_GCC_VERSION_6_X default "7.2.0" if BR2_GCC_VERSION_7_X - default "arc-2017.03" if BR2_GCC_VERSION_ARC + default "arc-2017.09-eng008" if BR2_GCC_VERSION_ARC default "musl-5.4.0" if BR2_GCC_VERSION_OR1K config BR2_EXTRA_GCC_CONFIG_OPTIONS diff --git a/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch b/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch deleted file mode 100644 index 3b09a13019..0000000000 --- a/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 08235ef444fd32d311fc9edb65895133820462e3 Mon Sep 17 00:00:00 2001 -From: claziss -Date: Wed, 24 May 2017 12:53:43 +0200 -Subject: [PATCH] [ARC] Fix tst_movb pattern. - -The tst_movb pattern is missing guarding when spitting. - -gcc/ -2017-05-24 Claudiu Zissulescu - - * config/arc/arc.md (tst_movb): Add guard when splitting. - -testsuite/ -2017-05-24 Claudiu Zissulescu - - * gcc.target/arc/pr9001195952.c: New test. ---- - gcc/config/arc/arc.md | 2 +- - gcc/testsuite/gcc.target/arc/pr9001195952.c | 11 +++++++++++ - 2 files changed, 12 insertions(+), 1 deletion(-) - create mode 100755 gcc/testsuite/gcc.target/arc/pr9001195952.c - -diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md -index e78abaaafc42..d5510aeb0600 100644 ---- a/gcc/config/arc/arc.md -+++ b/gcc/config/arc/arc.md -@@ -863,7 +863,7 @@ archs4xd, archs4xd_slow" - (clobber (match_scratch:SI 3 "=X,X,X,X,X,X,Rrq,Rrq,c"))] - "TARGET_NPS_BITOPS" - "movb.f.cl %3,%1,%p2,%p2,%s2" -- "reload_completed -+ "TARGET_NPS_BITOPS && reload_completed - && (extract_constrain_insn_cached (insn), (which_alternative & ~1) != 6)" - [(set (match_dup 0) (match_dup 4))]) - -diff --git a/gcc/testsuite/gcc.target/arc/pr9001195952.c b/gcc/testsuite/gcc.target/arc/pr9001195952.c -new file mode 100755 -index 000000000000..252438d8d78b ---- /dev/null -+++ b/gcc/testsuite/gcc.target/arc/pr9001195952.c -@@ -0,0 +1,11 @@ -+/* { dg-do compile } */ -+/* { dg-skip-if "" { ! { clmcpu } } } */ -+/* { dg-options "-mcpu=archs -Os -w -fpic" } */ -+ -+/* tst_movb split pattern is wrong for anything else than NPS -+ chip. */ -+__bswap_32___bsx() { -+ int a = __builtin_bswap32(__bswap_32___bsx); -+ if (a & 1048575) -+ zlog_warn(); -+} --- -2.7.4 - diff --git a/package/gcc/arc-2017.03/301-missing-execinfo_h.patch b/package/gcc/arc-2017.03/301-missing-execinfo_h.patch deleted file mode 100644 index 2d0e7baa44..0000000000 --- a/package/gcc/arc-2017.03/301-missing-execinfo_h.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: b/boehm-gc/include/gc.h -=================================================================== ---- a/boehm-gc/include/gc.h -+++ b/boehm-gc/include/gc.h -@@ -503,7 +503,7 @@ - #if defined(__linux__) || defined(__GLIBC__) - # include - # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \ -- && !defined(__ia64__) -+ && !defined(__ia64__) && !defined(__UCLIBC__) - # ifndef GC_HAVE_BUILTIN_BACKTRACE - # define GC_HAVE_BUILTIN_BACKTRACE - # endif diff --git a/package/gcc/arc-2017.03/940-uclinux-enable-threads.patch b/package/gcc/arc-2017.03/940-uclinux-enable-threads.patch deleted file mode 100644 index 5532656725..0000000000 --- a/package/gcc/arc-2017.03/940-uclinux-enable-threads.patch +++ /dev/null @@ -1,19 +0,0 @@ -Enable POSIX threads for uClinux targets -Reported upstream: -https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721 - -Signed-off-by: Waldemar Brodkorb - -diff -Nur gcc-6.1.0.orig/gcc/config.gcc gcc-6.1.0/gcc/config.gcc ---- gcc-6.1.0.orig/gcc/config.gcc 2016-04-11 12:14:59.000000000 +0200 -+++ gcc-6.1.0/gcc/config.gcc 2016-07-02 20:04:25.732169982 +0200 -@@ -833,6 +833,9 @@ - *-*-uclinux*) - extra_options="$extra_options gnu-user.opt" - use_gcc_stdint=wrap -+ case ${enable_threads} in -+ "" | yes | posix) thread_file='posix' ;; -+ esac - tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC" - ;; - *-*-rdos*) diff --git a/package/gcc/arc-2017.09-eng008/0100-uclibc-conf.patch b/package/gcc/arc-2017.09-eng008/0100-uclibc-conf.patch new file mode 100644 index 0000000000..d354baf81f --- /dev/null +++ b/package/gcc/arc-2017.09-eng008/0100-uclibc-conf.patch @@ -0,0 +1,29 @@ +From 326b880b20e5f8187dbda736b4c4c662cbfb00ca Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Tue, 2 May 2017 22:36:15 +0200 +Subject: [PATCH] uclibc-conf + +[Romain: convert to git patch] +Signed-off-by: Romain Naour +--- + contrib/regression/objs-gcc.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/contrib/regression/objs-gcc.sh b/contrib/regression/objs-gcc.sh +index 60b0497..6dc7ead 100755 +--- a/contrib/regression/objs-gcc.sh ++++ b/contrib/regression/objs-gcc.sh +@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-gnu ] + then + make all-gdb all-dejagnu all-ld || exit 1 + make install-gdb install-dejagnu install-ld || exit 1 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] ++ then ++ make all-gdb all-dejagnu all-ld || exit 1 ++ make install-gdb install-dejagnu install-ld || exit 1 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then + make bootstrap || exit 1 + make install || exit 1 +-- +2.9.3 + diff --git a/package/gcc/arc-2017.03/860-cilk-wchar.patch b/package/gcc/arc-2017.09-eng008/0860-cilk-fix-build-without-wchar.patch similarity index 79% rename from package/gcc/arc-2017.03/860-cilk-wchar.patch rename to package/gcc/arc-2017.09-eng008/0860-cilk-fix-build-without-wchar.patch index 1d9916f554..61ab01c713 100644 --- a/package/gcc/arc-2017.03/860-cilk-wchar.patch +++ b/package/gcc/arc-2017.09-eng008/0860-cilk-fix-build-without-wchar.patch @@ -1,4 +1,7 @@ -[PATCH] cilk: fix build without wchar +From 714739e69ead1d9823233af40645277f6d4633ea Mon Sep 17 00:00:00 2001 +From: Peter Korsgaard +Date: Tue, 2 May 2017 23:21:46 +0200 +Subject: [PATCH] cilk: fix build without wchar When building against uClibc with wchar support disabled, WCHAR_MIN and WCHAR_MAX are not defined leading to compilation errors. @@ -6,15 +9,17 @@ WCHAR_MAX are not defined leading to compilation errors. Fix it by only including the wchar code if available. Signed-off-by: Peter Korsgaard +[Romain: convert to git patch] +Signed-off-by: Romain Naour --- - libcilkrts/include/cilk/reducer_min_max.h | 8 ++++++++ + libcilkrts/include/cilk/reducer_min_max.h | 8 ++++++++ 1 file changed, 8 insertions(+) -Index: b/libcilkrts/include/cilk/reducer_min_max.h -=================================================================== +diff --git a/libcilkrts/include/cilk/reducer_min_max.h b/libcilkrts/include/cilk/reducer_min_max.h +index 641aa82..4f8e010 100644 --- a/libcilkrts/include/cilk/reducer_min_max.h +++ b/libcilkrts/include/cilk/reducer_min_max.h -@@ -3154,7 +3154,9 @@ +@@ -3289,7 +3289,9 @@ __CILKRTS_BEGIN_EXTERN_C CILK_C_REDUCER_MAX_INSTANCE(char, char, CHAR_MIN) CILK_C_REDUCER_MAX_INSTANCE(unsigned char, uchar, 0) CILK_C_REDUCER_MAX_INSTANCE(signed char, schar, SCHAR_MIN) @@ -24,7 +29,7 @@ Index: b/libcilkrts/include/cilk/reducer_min_max.h CILK_C_REDUCER_MAX_INSTANCE(short, short, SHRT_MIN) CILK_C_REDUCER_MAX_INSTANCE(unsigned short, ushort, 0) CILK_C_REDUCER_MAX_INSTANCE(int, int, INT_MIN) -@@ -3306,7 +3308,9 @@ +@@ -3441,7 +3443,9 @@ __CILKRTS_BEGIN_EXTERN_C CILK_C_REDUCER_MAX_INDEX_INSTANCE(char, char, CHAR_MIN) CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned char, uchar, 0) CILK_C_REDUCER_MAX_INDEX_INSTANCE(signed char, schar, SCHAR_MIN) @@ -34,7 +39,7 @@ Index: b/libcilkrts/include/cilk/reducer_min_max.h CILK_C_REDUCER_MAX_INDEX_INSTANCE(short, short, SHRT_MIN) CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned short, ushort, 0) CILK_C_REDUCER_MAX_INDEX_INSTANCE(int, int, INT_MIN) -@@ -3432,7 +3436,9 @@ +@@ -3567,7 +3571,9 @@ __CILKRTS_BEGIN_EXTERN_C CILK_C_REDUCER_MIN_INSTANCE(char, char, CHAR_MAX) CILK_C_REDUCER_MIN_INSTANCE(unsigned char, uchar, CHAR_MAX) CILK_C_REDUCER_MIN_INSTANCE(signed char, schar, SCHAR_MAX) @@ -44,7 +49,7 @@ Index: b/libcilkrts/include/cilk/reducer_min_max.h CILK_C_REDUCER_MIN_INSTANCE(short, short, SHRT_MAX) CILK_C_REDUCER_MIN_INSTANCE(unsigned short, ushort, USHRT_MAX) CILK_C_REDUCER_MIN_INSTANCE(int, int, INT_MAX) -@@ -3584,7 +3590,9 @@ +@@ -3719,7 +3725,9 @@ __CILKRTS_BEGIN_EXTERN_C CILK_C_REDUCER_MIN_INDEX_INSTANCE(char, char, CHAR_MAX) CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned char, uchar, CHAR_MAX) CILK_C_REDUCER_MIN_INDEX_INSTANCE(signed char, schar, SCHAR_MAX) @@ -54,3 +59,6 @@ Index: b/libcilkrts/include/cilk/reducer_min_max.h CILK_C_REDUCER_MIN_INDEX_INSTANCE(short, short, SHRT_MAX) CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned short, ushort, USHRT_MAX) CILK_C_REDUCER_MIN_INDEX_INSTANCE(int, int, INT_MAX) +-- +2.9.3 + diff --git a/package/gcc/arc-2017.09-eng008/0900-remove-selftests.patch b/package/gcc/arc-2017.09-eng008/0900-remove-selftests.patch new file mode 100644 index 0000000000..a3bc7a5730 --- /dev/null +++ b/package/gcc/arc-2017.09-eng008/0900-remove-selftests.patch @@ -0,0 +1,111 @@ +From 63f0917d90eb83d267dc517fdfb6523a74b1917c Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Wed, 3 May 2017 00:37:06 +0200 +Subject: [PATCH] remove selftests + +When the gcc archive is extracted by the gcc.mk, the gcc/testsuite +is excluded: + +HOST_GCC_EXCLUDES = \ + libjava/* libgo/* \ + gcc/testsuite/* libstdc++-v3/testsuite/* + +The new Makefile target from the "Selftest framework" [1] added a dependency +on the gcc/testsuite/Makefile. +Revert partially the commit [1] to allow building gcc without selftest. + +[1] https://github.com/gcc-mirror/gcc/commit/99b4f3a2d5bf2c137de9731e27b483eb6b462fd9 + +Signed-off-by: Romain Naour +--- + gcc/Makefile.in | 46 +++++----------------------------------------- + 1 file changed, 5 insertions(+), 41 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 74d1912..652a554 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -1581,14 +1581,13 @@ OBJS = \ + OBJS-libcommon = diagnostic.o diagnostic-color.o diagnostic-show-locus.o \ + edit-context.o \ + pretty-print.o intl.o \ +- vec.o input.o version.o hash-table.o ggc-none.o memory-block.o \ +- selftest.o ++ vec.o input.o version.o hash-table.o ggc-none.o memory-block.o + + # Objects in libcommon-target.a, used by drivers and by the core + # compiler and containing target-dependent code. + OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \ + opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \ +- hash-table.o file-find.o spellcheck.o selftest.o ++ hash-table.o file-find.o spellcheck.o + + # This lists all host objects for the front ends. + ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS)) +@@ -1865,10 +1864,10 @@ config.status: $(srcdir)/configure $(srcdir)/config.gcc + quickstrap: all + cd $(toplevel_builddir) && $(MAKE) all-target-libgcc + +-all.internal: start.encap rest.encap doc selftest ++all.internal: start.encap rest.encap doc + # This is what to compile if making a cross-compiler. + all.cross: native gcc-cross$(exeext) cpp$(exeext) specs \ +- libgcc-support lang.all.cross doc selftest @GENINSRC@ srcextra ++ libgcc-support lang.all.cross doc @GENINSRC@ srcextra + # This is what must be made before installing GCC and converting libraries. + start.encap: native xgcc$(exeext) cpp$(exeext) specs \ + libgcc-support lang.start.encap @GENINSRC@ srcextra +@@ -1888,41 +1887,6 @@ endif + # This does the things that can't be done on the host machine. + rest.cross: specs + +-# GCC's selftests. +-# Specify a dummy input file to placate the driver. +-# Specify -nostdinc to work around missing WIND_BASE environment variable +-# required for *-wrs-vxworks-* targets. +-# Specify -o /dev/null so the output of -S is discarded. More importantly +-# It does not try to create a file with the name "null.s" on POSIX and +-# "nul.s" on Windows. Because on Windows "nul" is a reserved file name. +-# Specify the path to gcc/testsuite/selftests within the srcdir +-# as an argument to -fself-test. +-SELFTEST_FLAGS = -nostdinc -x c /dev/null -S -o /dev/null \ +- -fself-test=$(srcdir)/testsuite/selftests +- +-# Run the selftests during the build once we have a driver and a cc1, +-# so that self-test failures are caught as early as possible. +-# Use "s-selftest" to ensure that we only run the selftests if the +-# driver, cc1, or selftest data change. +-.PHONY: selftest +-selftest: s-selftest +-s-selftest: $(GCC_PASSES) cc1$(exeext) stmp-int-hdrs \ +- $(srcdir)/testsuite/selftests +- $(GCC_FOR_TARGET) $(SELFTEST_FLAGS) +- $(STAMP) $@ +- +-# Convenience method for running selftests under gdb: +-.PHONY: selftest-gdb +-selftest-gdb: $(GCC_PASSES) cc1$(exeext) stmp-int-hdrs +- $(GCC_FOR_TARGET) $(SELFTEST_FLAGS) \ +- -wrapper gdb,--args +- +-# Convenience method for running selftests under valgrind: +-.PHONY: selftest-valgrind +-selftest-valgrind: $(GCC_PASSES) cc1$(exeext) stmp-int-hdrs +- $(GCC_FOR_TARGET) $(SELFTEST_FLAGS) \ +- -wrapper valgrind,--leak-check=full +- + # Recompile all the language-independent object files. + # This is used only if the user explicitly asks for it. + compilations: $(BACKEND) +@@ -2076,7 +2040,7 @@ gcc-nm.c: gcc-ar.c + cp $^ $@ + + COLLECT2_OBJS = collect2.o collect2-aix.o tlink.o vec.o ggc-none.o \ +- collect-utils.o file-find.o hash-table.o selftest.o ++ collect-utils.o file-find.o hash-table.o + COLLECT2_LIBS = @COLLECT2_LIBS@ + collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS) + # Don't try modifying collect2 (aka ld) in place--it might be linking this. +-- +2.9.3 + diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index f35a2e2b55..a0626a6825 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -8,6 +8,6 @@ sha512 02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bb sha512 f853cd6530b4055d8d8289da74687cb4c6d5f363598d386332d31852b581bac76c3adb7d61889edec3b779f63d8646f0122840f12965ce4a4389ba535dbbb6e1 gcc-7.2.0.tar.xz # Locally calculated (fetched from Github) -sha512 282f76b8b63372f5b4426092b80d36da96cd0bda2a8588405b9ec22806c69fafb696b0e0df65bc36c3c3aa8ce5befc24246fd5c6ddb21dcde01f45f7b11ff7c4 gcc-arc-2017.03.tar.gz +sha512 7d1c6ed2d63cc85b69b9a0e21b2bb3fbefdf3170c290569ca54bf14355a70fc2036c0a86578ea3840160ea075a479b660c780cbd5adcaa5f581bd7e89bbee292 gcc-arc-2017.09-eng008.tar.gz # Locally calculated (fetched from Github) sha512 841101f7de45f327bf2e92f3efc73ca88a021e4b9b541458ce80a16e55882bd8606a8492d75c57c589ee2c10d42ae2865b67690155d7289a541df1d68096402f gcc-musl-5.4.0.tar.gz diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 93dfa67b3c..e033eb876a 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -64,7 +64,7 @@ endif # If cross-gdb is not enabled, the latest working version is chosen. config BR2_GDB_VERSION string - default "arc-2017.03-gdb" if BR2_arc + default "arc-2017.09-eng008-gdb" if BR2_arc default "7.10.1" if BR2_GDB_VERSION_7_10 default "7.11.1" if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB default "7.12.1" if BR2_GDB_VERSION_7_12 diff --git a/package/gdb/gdb.hash b/package/gdb/gdb.hash index a4fd8bca7e..95994aa8bb 100644 --- a/package/gdb/gdb.hash +++ b/package/gdb/gdb.hash @@ -5,4 +5,4 @@ sha512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7 sha512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 gdb-8.0.tar.xz # Locally calculated (fetched from Github) -sha512 8ec849a5ea1c16f104c51c4813c35ab229e460eef0025967673b87316f62b5171f05448cda018464914d43d2da50b2902eb7f9f060d0af1368a9db111f959668 gdb-arc-2017.03-gdb.tar.gz +sha512 7e75db64f6919428951cec6c40a62f4f7c729b6952e44d7c763f439aecb41acadaf21a7ab936b28ac3f1877a8692ba423d24853a4c761ae1484f157a8ca4cd82 gdb-arc-2017.09-eng008-gdb.tar.gz