get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/813899/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

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