Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806282/?format=api
{ "id": 806282, "url": "http://patchwork.ozlabs.org/api/patches/806282/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170827173606.13144-2-romain.naour@gmail.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": "<20170827173606.13144-2-romain.naour@gmail.com>", "list_archive_url": null, "date": "2017-08-27T17:36:00", "name": "[1/7] package/gcc: fix build issue with glibc 2.26", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "6698371337534b456822e8fe7e4a5ca595a4b512", "submitter": { "id": 67942, "url": "http://patchwork.ozlabs.org/api/people/67942/?format=api", "name": "Romain Naour", "email": "romain.naour@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170827173606.13144-2-romain.naour@gmail.com/mbox/", "series": [ { "id": 34, "url": "http://patchwork.ozlabs.org/api/series/34/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=34", "date": "2017-08-27T17:35:59", "name": "glibc: bump to 2.26", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/34/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/806282/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806282/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.136; helo=silver.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"GHpmOUwB\"; dkim-atps=neutral" ], "Received": [ "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\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 3xgMWv3BZKz9s8w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 03:36:27 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7CC2B2F82A;\n\tSun, 27 Aug 2017 17:36:25 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id eZMtuMGrpWdl; Sun, 27 Aug 2017 17:36:22 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 44B3F2514E;\n\tSun, 27 Aug 2017 17:36:22 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id AE3DD1C0D51\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 27 Aug 2017 17:36:16 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id A959888EB1\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 27 Aug 2017 17:36:16 +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 fAuHflm+hzoE for <buildroot@lists.busybox.net>;\n\tSun, 27 Aug 2017 17:36:14 +0000 (UTC)", "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 67F4988EAF\n\tfor <buildroot@buildroot.org>; Sun, 27 Aug 2017 17:36:14 +0000 (UTC)", "by mail-wm0-f65.google.com with SMTP id e67so4847960wmd.0\n\tfor <buildroot@buildroot.org>; Sun, 27 Aug 2017 10:36:14 -0700 (PDT)", "from localhost.localdomain\n\t([2a01:e35:1391:67d0:e6f9:2d2f:1a1e:79bf])\n\tby smtp.gmail.com with ESMTPSA id\n\tk35sm1926217wre.95.2017.08.27.10.36.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 27 Aug 2017 10:36:11 -0700 (PDT)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=DVlvwPhp1MHqrk+ugI8C+qMkmL5YWNTUSQkvYb/hMTc=;\n\tb=GHpmOUwB8mVi1A5lwu3CgOPynuL0FfELdgXC50zeW7PIeFv6CoztMDvGP4zWhiP1tC\n\tpr9ps1bAAwqMcNziUJG47Hgio64rRIuONdrPuipjzNMwtCt49krMCV1xXRU+1QTTqyKh\n\tWh3JYSrrbN2H6oshOauhO1j1TdXviiQpfP1/hkwVZl23CwHWlPRLjXm096tFJCd6nkyu\n\tUslg5HKMBpaPaeb2a502Ey3aVWUGKAtFK8OoIyCiRevzjlu7pLAAtCvtygJx5/PjHtD6\n\tui4/PZBPZQJLibAgJ0aPxoIVqsVnQxZFRShJGR6l8/yr0fXEcFcbnyZjxMWIuUimXNjv\n\tds/g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=DVlvwPhp1MHqrk+ugI8C+qMkmL5YWNTUSQkvYb/hMTc=;\n\tb=ZFnTh6Dy0hzVK7b3q84kng6CjH14GCG9IjXNei8NqI9Eh99VTDs4APsSH8o3SbIKEN\n\t1xBs4mfshVj/CylxAjaBCAmhBhh1qchxNjDrCOveRBCG2+4nsZoJxGEi6yIP8bEZueXn\n\t85h/IF6jdYUfCY6p0EHq59iYyXhG3w2R4zt91PjHzZ732YKHG9gsj90QoX0UK33fOfdn\n\tS828Mq0bwzMJI92D3AAoFp5cvQkKwJWzu42GUMFy4NwecCMbvfug3yeWULPR4yuT5zg5\n\trKn8eq4ndWZURp+OPIn5KosIXWLtGD0ezkqZBPN1NNQA46W0GkSovWltaCoUzJwx6oyB\n\tUJQw==", "X-Gm-Message-State": "AHYfb5h4uJLO6PcMP1uhuKdWZv9H2cRV0JLcRwMBikgQdin9DUy0Euyw\n\tiSN6LWK5bgDJsl2miXg=", "X-Received": "by 10.28.209.197 with SMTP id i188mr2117219wmg.51.1503855371975; \n\tSun, 27 Aug 2017 10:36:11 -0700 (PDT)", "From": "Romain Naour <romain.naour@gmail.com>", "To": "buildroot@buildroot.org", "Date": "Sun, 27 Aug 2017 19:36:00 +0200", "Message-Id": "<20170827173606.13144-2-romain.naour@gmail.com>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20170827173606.13144-1-romain.naour@gmail.com>", "References": "<20170827173606.13144-1-romain.naour@gmail.com>", "MIME-Version": "1.0", "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\tRomain Naour <romain.naour@gmail.com>", "Subject": "[Buildroot] [PATCH 1/7] package/gcc: fix build issue with glibc 2.26", "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>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>" }, "content": "In file included from ../../../libgcc/unwind-dw2.c:403:0:\n./md-unwind-support.h: In function « aarch64_fallback_frame_state »:\n./md-unwind-support.h:58:21: error: field « uc » has incomplete type\n struct ucontext uc;\n ^~\n\nThe fix is already included in gcc 7.2 release [1]. We have to backport it to\nall older gcc release since it's not included in any stable release yet.\n\n[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=14c2f22a1877f6b60a2f7c2f83ffb032759456a6\n\nSigned-off-by: Romain Naour <romain.naour@gmail.com>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n---\n ...t_t-not-struct-ucontext-in-linux-unwind.h.patch | 190 ++++++++++++++++++++\n ...t_t-not-struct-ucontext-in-linux-unwind.h.patch | 192 +++++++++++++++++++++\n ...t_t-not-struct-ucontext-in-linux-unwind.h.patch | 191 ++++++++++++++++++++\n 3 files changed, 573 insertions(+)\n create mode 100644 package/gcc/4.9.4/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\n create mode 100644 package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\n create mode 100644 package/gcc/6.4.0/942-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch", "diff": "diff --git a/package/gcc/4.9.4/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch b/package/gcc/4.9.4/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\nnew file mode 100644\nindex 0000000..526346c\n--- /dev/null\n+++ b/package/gcc/4.9.4/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\n@@ -0,0 +1,190 @@\n+From b7e85069238c40eae54d0ca03ab6d5470d1815f9 Mon Sep 17 00:00:00 2001\n+From: jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>\n+Date: Tue, 4 Jul 2017 10:25:10 +0000\n+Subject: [PATCH] Use ucontext_t not struct ucontext in linux-unwind.h files.\n+\n+Current glibc no longer gives the ucontext_t type the tag struct\n+ucontext, to conform with POSIX namespace rules. This requires\n+various linux-unwind.h files in libgcc, that were previously using\n+struct ucontext, to be fixed to use ucontext_t instead. This is\n+similar to the removal of the struct siginfo tag from siginfo_t some\n+years ago.\n+\n+This patch changes those files to use ucontext_t instead. As the\n+standard name that should be unconditionally safe, so this is not\n+restricted to architectures supported by glibc, or conditioned on the\n+glibc version.\n+\n+Tested compilation together with current glibc with glibc's\n+build-many-glibcs.py.\n+\n+\t* config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),\n+\tconfig/alpha/linux-unwind.h (alpha_fallback_frame_state),\n+\tconfig/bfin/linux-unwind.h (bfin_fallback_frame_state),\n+\tconfig/i386/linux-unwind.h (x86_64_fallback_frame_state,\n+\tx86_fallback_frame_state), config/m68k/linux-unwind.h (struct\n+\tuw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),\n+\tconfig/pa/linux-unwind.h (pa32_fallback_frame_state),\n+\tconfig/sh/linux-unwind.h (sh_fallback_frame_state),\n+\tconfig/tilepro/linux-unwind.h (tile_fallback_frame_state),\n+\tconfig/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use\n+\tucontext_t instead of struct ucontext.\n+\n+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@249958 138bc75d-0d04-0410-961f-82ee72b054a4\n+[Romain backport from gcc-5-branch]\n+Signed-off-by: Romain Naour <romain.naour@gmail.com>\n+---\n+ libgcc/config/aarch64/linux-unwind.h | 2 +-\n+ libgcc/config/alpha/linux-unwind.h | 2 +-\n+ libgcc/config/bfin/linux-unwind.h | 2 +-\n+ libgcc/config/i386/linux-unwind.h | 4 ++--\n+ libgcc/config/m68k/linux-unwind.h | 2 +-\n+ libgcc/config/nios2/linux-unwind.h | 2 +-\n+ libgcc/config/pa/linux-unwind.h | 2 +-\n+ libgcc/config/sh/linux-unwind.h | 2 +-\n+ libgcc/config/tilepro/linux-unwind.h | 2 +-\n+ libgcc/config/xtensa/linux-unwind.h | 2 +-\n+ 10 files changed, 11 insertions(+), 11 deletions(-)\n+\n+diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h\n+index 6b5b3cd..d13dc34 100644\n+--- a/libgcc/config/aarch64/linux-unwind.h\n++++ b/libgcc/config/aarch64/linux-unwind.h\n+@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe\n+ {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ };\n+ \n+ struct rt_sigframe *rt_;\n+diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h\n+index b5bfd1c..166d3d2 100644\n+--- a/libgcc/config/alpha/linux-unwind.h\n++++ b/libgcc/config/alpha/linux-unwind.h\n+@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ sc = &rt_->uc.uc_mcontext;\n+ }\n+diff --git a/libgcc/config/bfin/linux-unwind.h b/libgcc/config/bfin/linux-unwind.h\n+index dc58f0a..8b94568 100644\n+--- a/libgcc/config/bfin/linux-unwind.h\n++++ b/libgcc/config/bfin/linux-unwind.h\n+@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,\n+ \tvoid *puc;\n+ \tchar retcode[8];\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ \n+ /* The void * cast is necessary to avoid an aliasing warning.\n+diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h\n+index 7986928..a9d621c 100644\n+--- a/libgcc/config/i386/linux-unwind.h\n++++ b/libgcc/config/i386/linux-unwind.h\n+@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,\n+ if (*(unsigned char *)(pc+0) == 0x48\n+ && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)\n+ {\n+- struct ucontext *uc_ = context->cfa;\n++ ucontext_t *uc_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+ because it does not alias anything. */\n+@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,\n+ \tsiginfo_t *pinfo;\n+ \tvoid *puc;\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/m68k/linux-unwind.h b/libgcc/config/m68k/linux-unwind.h\n+index 1ba2a0c4..d67767e 100644\n+--- a/libgcc/config/m68k/linux-unwind.h\n++++ b/libgcc/config/m68k/linux-unwind.h\n+@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see\n+ /* <sys/ucontext.h> is unfortunately broken right now. */\n+ struct uw_ucontext {\n+ \tunsigned long\t uc_flags;\n+-\tstruct ucontext *uc_link;\n++\tucontext_t\t *uc_link;\n+ \tstack_t\t\t uc_stack;\n+ \tmcontext_t\t uc_mcontext;\n+ \tunsigned long\t uc_filler[80];\n+diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h\n+index ba4bd80..8978868 100644\n+--- a/libgcc/config/nios2/linux-unwind.h\n++++ b/libgcc/config/nios2/linux-unwind.h\n+@@ -38,7 +38,7 @@ struct nios2_mcontext {\n+ \n+ struct nios2_ucontext {\n+ unsigned long uc_flags;\n+- struct ucontext *uc_link;\n++ ucontext_t *uc_link;\n+ stack_t uc_stack;\n+ struct nios2_mcontext uc_mcontext;\n+ sigset_t uc_sigmask;\t/* mask last for extensibility */\n+diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h\n+index 4a3cfff..d2ac437 100644\n+--- a/libgcc/config/pa/linux-unwind.h\n++++ b/libgcc/config/pa/linux-unwind.h\n+@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,\n+ struct sigcontext *sc;\n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *frame;\n+ \n+ /* rt_sigreturn trampoline:\n+diff --git a/libgcc/config/sh/linux-unwind.h b/libgcc/config/sh/linux-unwind.h\n+index 4875706..671bde7 100644\n+--- a/libgcc/config/sh/linux-unwind.h\n++++ b/libgcc/config/sh/linux-unwind.h\n+@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/tilepro/linux-unwind.h b/libgcc/config/tilepro/linux-unwind.h\n+index 27481cf..c24d58c 100644\n+--- a/libgcc/config/tilepro/linux-unwind.h\n++++ b/libgcc/config/tilepro/linux-unwind.h\n+@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe {\n+ unsigned char save_area[C_ABI_SAVE_AREA_SIZE];\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* Return if this is not a signal handler. */\n+diff --git a/libgcc/config/xtensa/linux-unwind.h b/libgcc/config/xtensa/linux-unwind.h\n+index 6832d0b..cb15b4c 100644\n+--- a/libgcc/config/xtensa/linux-unwind.h\n++++ b/libgcc/config/xtensa/linux-unwind.h\n+@@ -63,7 +63,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,\n+ \n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* movi a2, __NR_rt_sigreturn; syscall */\n+-- \n+2.9.5\n+\ndiff --git a/package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch b/package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\nnew file mode 100644\nindex 0000000..f207f91\n--- /dev/null\n+++ b/package/gcc/5.4.0/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\n@@ -0,0 +1,192 @@\n+From ecf0d1a107133c715763940c2b197aa814710e1b Mon Sep 17 00:00:00 2001\n+From: jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>\n+Date: Tue, 4 Jul 2017 10:25:10 +0000\n+Subject: [PATCH] Use ucontext_t not struct ucontext in linux-unwind.h files.\n+\n+Current glibc no longer gives the ucontext_t type the tag struct\n+ucontext, to conform with POSIX namespace rules. This requires\n+various linux-unwind.h files in libgcc, that were previously using\n+struct ucontext, to be fixed to use ucontext_t instead. This is\n+similar to the removal of the struct siginfo tag from siginfo_t some\n+years ago.\n+\n+This patch changes those files to use ucontext_t instead. As the\n+standard name that should be unconditionally safe, so this is not\n+restricted to architectures supported by glibc, or conditioned on the\n+glibc version.\n+\n+Tested compilation together with current glibc with glibc's\n+build-many-glibcs.py.\n+\n+\t* config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),\n+\tconfig/alpha/linux-unwind.h (alpha_fallback_frame_state),\n+\tconfig/bfin/linux-unwind.h (bfin_fallback_frame_state),\n+\tconfig/i386/linux-unwind.h (x86_64_fallback_frame_state,\n+\tx86_fallback_frame_state), config/m68k/linux-unwind.h (struct\n+\tuw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),\n+\tconfig/pa/linux-unwind.h (pa32_fallback_frame_state),\n+\tconfig/sh/linux-unwind.h (sh_fallback_frame_state),\n+\tconfig/tilepro/linux-unwind.h (tile_fallback_frame_state),\n+\tconfig/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use\n+\tucontext_t instead of struct ucontext.\n+\n+\n+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@249958 138bc75d-0d04-0410-961f-82ee72b054a4\n+\n+[Romain cherry-pick from gcc-5-branch]\n+Signed-off-by: Romain Naour <romain.naour@gmail.com>\n+---\n+ libgcc/config/aarch64/linux-unwind.h | 2 +-\n+ libgcc/config/alpha/linux-unwind.h | 2 +-\n+ libgcc/config/bfin/linux-unwind.h | 2 +-\n+ libgcc/config/i386/linux-unwind.h | 4 ++--\n+ libgcc/config/m68k/linux-unwind.h | 2 +-\n+ libgcc/config/nios2/linux-unwind.h | 2 +-\n+ libgcc/config/pa/linux-unwind.h | 2 +-\n+ libgcc/config/sh/linux-unwind.h | 2 +-\n+ libgcc/config/tilepro/linux-unwind.h | 2 +-\n+ libgcc/config/xtensa/linux-unwind.h | 2 +-\n+ 11 files changed, 25 insertions(+), 11 deletions(-)\n+\n+diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h\n+index 86d17b1..909f68f 100644\n+--- a/libgcc/config/aarch64/linux-unwind.h\n++++ b/libgcc/config/aarch64/linux-unwind.h\n+@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe\n+ {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ };\n+ \n+ struct rt_sigframe *rt_;\n+diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h\n+index d65474f..9a226b1 100644\n+--- a/libgcc/config/alpha/linux-unwind.h\n++++ b/libgcc/config/alpha/linux-unwind.h\n+@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ sc = &rt_->uc.uc_mcontext;\n+ }\n+diff --git a/libgcc/config/bfin/linux-unwind.h b/libgcc/config/bfin/linux-unwind.h\n+index 0c270e4..7fa95d2 100644\n+--- a/libgcc/config/bfin/linux-unwind.h\n++++ b/libgcc/config/bfin/linux-unwind.h\n+@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,\n+ \tvoid *puc;\n+ \tchar retcode[8];\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ \n+ /* The void * cast is necessary to avoid an aliasing warning.\n+diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h\n+index e54bf73..d35fc45 100644\n+--- a/libgcc/config/i386/linux-unwind.h\n++++ b/libgcc/config/i386/linux-unwind.h\n+@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,\n+ if (*(unsigned char *)(pc+0) == 0x48\n+ && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)\n+ {\n+- struct ucontext *uc_ = context->cfa;\n++ ucontext_t *uc_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+ because it does not alias anything. */\n+@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,\n+ \tsiginfo_t *pinfo;\n+ \tvoid *puc;\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/m68k/linux-unwind.h b/libgcc/config/m68k/linux-unwind.h\n+index fb79a4d..b2f5ea4 100644\n+--- a/libgcc/config/m68k/linux-unwind.h\n++++ b/libgcc/config/m68k/linux-unwind.h\n+@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see\n+ /* <sys/ucontext.h> is unfortunately broken right now. */\n+ struct uw_ucontext {\n+ \tunsigned long\t uc_flags;\n+-\tstruct ucontext *uc_link;\n++\tucontext_t\t *uc_link;\n+ \tstack_t\t\t uc_stack;\n+ \tmcontext_t\t uc_mcontext;\n+ \tunsigned long\t uc_filler[80];\n+diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h\n+index dff1c20..1d88afe 100644\n+--- a/libgcc/config/nios2/linux-unwind.h\n++++ b/libgcc/config/nios2/linux-unwind.h\n+@@ -38,7 +38,7 @@ struct nios2_mcontext {\n+ \n+ struct nios2_ucontext {\n+ unsigned long uc_flags;\n+- struct ucontext *uc_link;\n++ ucontext_t *uc_link;\n+ stack_t uc_stack;\n+ struct nios2_mcontext uc_mcontext;\n+ sigset_t uc_sigmask;\t/* mask last for extensibility */\n+diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h\n+index 0149468..9157535 100644\n+--- a/libgcc/config/pa/linux-unwind.h\n++++ b/libgcc/config/pa/linux-unwind.h\n+@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,\n+ struct sigcontext *sc;\n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *frame;\n+ \n+ /* rt_sigreturn trampoline:\n+diff --git a/libgcc/config/sh/linux-unwind.h b/libgcc/config/sh/linux-unwind.h\n+index e63091f..67033f0 100644\n+--- a/libgcc/config/sh/linux-unwind.h\n++++ b/libgcc/config/sh/linux-unwind.h\n+@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/tilepro/linux-unwind.h b/libgcc/config/tilepro/linux-unwind.h\n+index fd83ba7..e3c9ef0 100644\n+--- a/libgcc/config/tilepro/linux-unwind.h\n++++ b/libgcc/config/tilepro/linux-unwind.h\n+@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe {\n+ unsigned char save_area[C_ABI_SAVE_AREA_SIZE];\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* Return if this is not a signal handler. */\n+diff --git a/libgcc/config/xtensa/linux-unwind.h b/libgcc/config/xtensa/linux-unwind.h\n+index 9a67b5d..98b7ea6 100644\n+--- a/libgcc/config/xtensa/linux-unwind.h\n++++ b/libgcc/config/xtensa/linux-unwind.h\n+@@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,\n+ \n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* movi a2, __NR_rt_sigreturn; syscall */\n+-- \n+2.9.4\n+\ndiff --git a/package/gcc/6.4.0/942-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch b/package/gcc/6.4.0/942-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\nnew file mode 100644\nindex 0000000..6d44045\n--- /dev/null\n+++ b/package/gcc/6.4.0/942-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch\n@@ -0,0 +1,191 @@\n+From b685411208e0aaa79190d54faf945763514706b8 Mon Sep 17 00:00:00 2001\n+From: jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>\n+Date: Tue, 4 Jul 2017 10:23:57 +0000\n+Subject: [PATCH] Use ucontext_t not struct ucontext in linux-unwind.h files.\n+\n+Current glibc no longer gives the ucontext_t type the tag struct\n+ucontext, to conform with POSIX namespace rules. This requires\n+various linux-unwind.h files in libgcc, that were previously using\n+struct ucontext, to be fixed to use ucontext_t instead. This is\n+similar to the removal of the struct siginfo tag from siginfo_t some\n+years ago.\n+\n+This patch changes those files to use ucontext_t instead. As the\n+standard name that should be unconditionally safe, so this is not\n+restricted to architectures supported by glibc, or conditioned on the\n+glibc version.\n+\n+Tested compilation together with current glibc with glibc's\n+build-many-glibcs.py.\n+\n+\t* config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),\n+\tconfig/alpha/linux-unwind.h (alpha_fallback_frame_state),\n+\tconfig/bfin/linux-unwind.h (bfin_fallback_frame_state),\n+\tconfig/i386/linux-unwind.h (x86_64_fallback_frame_state,\n+\tx86_fallback_frame_state), config/m68k/linux-unwind.h (struct\n+\tuw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),\n+\tconfig/pa/linux-unwind.h (pa32_fallback_frame_state),\n+\tconfig/sh/linux-unwind.h (sh_fallback_frame_state),\n+\tconfig/tilepro/linux-unwind.h (tile_fallback_frame_state),\n+\tconfig/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use\n+\tucontext_t instead of struct ucontext.\n+\n+\n+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@249957 138bc75d-0d04-0410-961f-82ee72b054a4\n+[Romain cherry-pick from gcc-6-branch]\n+Signed-off-by: Romain Naour <romain.naour@gmail.com>\n+---\n+ libgcc/config/aarch64/linux-unwind.h | 2 +-\n+ libgcc/config/alpha/linux-unwind.h | 2 +-\n+ libgcc/config/bfin/linux-unwind.h | 2 +-\n+ libgcc/config/i386/linux-unwind.h | 4 ++--\n+ libgcc/config/m68k/linux-unwind.h | 2 +-\n+ libgcc/config/nios2/linux-unwind.h | 2 +-\n+ libgcc/config/pa/linux-unwind.h | 2 +-\n+ libgcc/config/sh/linux-unwind.h | 2 +-\n+ libgcc/config/tilepro/linux-unwind.h | 2 +-\n+ libgcc/config/xtensa/linux-unwind.h | 2 +-\n+ 11 files changed, 25 insertions(+), 11 deletions(-)\n+\n+diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h\n+index 4512efb..06de45a 100644\n+--- a/libgcc/config/aarch64/linux-unwind.h\n++++ b/libgcc/config/aarch64/linux-unwind.h\n+@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe\n+ {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ };\n+ \n+ struct rt_sigframe *rt_;\n+diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h\n+index bdbba4a..e84812e 100644\n+--- a/libgcc/config/alpha/linux-unwind.h\n++++ b/libgcc/config/alpha/linux-unwind.h\n+@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ sc = &rt_->uc.uc_mcontext;\n+ }\n+diff --git a/libgcc/config/bfin/linux-unwind.h b/libgcc/config/bfin/linux-unwind.h\n+index 77b7c23..8bf5e82 100644\n+--- a/libgcc/config/bfin/linux-unwind.h\n++++ b/libgcc/config/bfin/linux-unwind.h\n+@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,\n+ \tvoid *puc;\n+ \tchar retcode[8];\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ \n+ /* The void * cast is necessary to avoid an aliasing warning.\n+diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h\n+index 540a0a2..29efbe3 100644\n+--- a/libgcc/config/i386/linux-unwind.h\n++++ b/libgcc/config/i386/linux-unwind.h\n+@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,\n+ if (*(unsigned char *)(pc+0) == 0x48\n+ && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)\n+ {\n+- struct ucontext *uc_ = context->cfa;\n++ ucontext_t *uc_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+ because it does not alias anything. */\n+@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,\n+ \tsiginfo_t *pinfo;\n+ \tvoid *puc;\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/m68k/linux-unwind.h b/libgcc/config/m68k/linux-unwind.h\n+index 75b7cf7..f964e24 100644\n+--- a/libgcc/config/m68k/linux-unwind.h\n++++ b/libgcc/config/m68k/linux-unwind.h\n+@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see\n+ /* <sys/ucontext.h> is unfortunately broken right now. */\n+ struct uw_ucontext {\n+ \tunsigned long\t uc_flags;\n+-\tstruct ucontext *uc_link;\n++\tucontext_t\t *uc_link;\n+ \tstack_t\t\t uc_stack;\n+ \tmcontext_t\t uc_mcontext;\n+ \tunsigned long\t uc_filler[80];\n+diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h\n+index 2304142..30f25ea 100644\n+--- a/libgcc/config/nios2/linux-unwind.h\n++++ b/libgcc/config/nios2/linux-unwind.h\n+@@ -38,7 +38,7 @@ struct nios2_mcontext {\n+ \n+ struct nios2_ucontext {\n+ unsigned long uc_flags;\n+- struct ucontext *uc_link;\n++ ucontext_t *uc_link;\n+ stack_t uc_stack;\n+ struct nios2_mcontext uc_mcontext;\n+ sigset_t uc_sigmask;\t/* mask last for extensibility */\n+diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h\n+index 9a2657f..e47493d 100644\n+--- a/libgcc/config/pa/linux-unwind.h\n++++ b/libgcc/config/pa/linux-unwind.h\n+@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,\n+ struct sigcontext *sc;\n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *frame;\n+ \n+ /* rt_sigreturn trampoline:\n+diff --git a/libgcc/config/sh/linux-unwind.h b/libgcc/config/sh/linux-unwind.h\n+index e389cac..0bf43ba 100644\n+--- a/libgcc/config/sh/linux-unwind.h\n++++ b/libgcc/config/sh/linux-unwind.h\n+@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,\n+ {\n+ struct rt_sigframe {\n+ \tsiginfo_t info;\n+-\tstruct ucontext uc;\n++\tucontext_t uc;\n+ } *rt_ = context->cfa;\n+ /* The void * cast is necessary to avoid an aliasing warning.\n+ The aliasing warning is correct, but should not be a problem\n+diff --git a/libgcc/config/tilepro/linux-unwind.h b/libgcc/config/tilepro/linux-unwind.h\n+index 796e976..75f8890 100644\n+--- a/libgcc/config/tilepro/linux-unwind.h\n++++ b/libgcc/config/tilepro/linux-unwind.h\n+@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,\n+ struct rt_sigframe {\n+ unsigned char save_area[C_ABI_SAVE_AREA_SIZE];\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* Return if this is not a signal handler. */\n+diff --git a/libgcc/config/xtensa/linux-unwind.h b/libgcc/config/xtensa/linux-unwind.h\n+index 9872492..586a9d4 100644\n+--- a/libgcc/config/xtensa/linux-unwind.h\n++++ b/libgcc/config/xtensa/linux-unwind.h\n+@@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,\n+ \n+ struct rt_sigframe {\n+ siginfo_t info;\n+- struct ucontext uc;\n++ ucontext_t uc;\n+ } *rt_;\n+ \n+ /* movi a2, __NR_rt_sigreturn; syscall */\n+-- \n+2.9.4\n+\n", "prefixes": [ "1/7" ] }