From patchwork Fri Nov 25 19:57:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Svante Signell X-Patchwork-Id: 84203 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp359335obn; Fri, 25 Nov 2016 12:02:01 -0800 (PST) X-Received: by 10.99.65.65 with SMTP id o62mr17249168pga.73.1480104121746; Fri, 25 Nov 2016 12:02:01 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b61si17618947plc.299.2016.11.25.12.02.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 12:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-442676-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-442676-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-442676-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; q=dns; s=default; b=mArqReVwB3Sz2CW/7EhsFU/5c9A4J q1DZlbh1LNPYGKgmzypu88Pmw7HKlGJHI9uWzH8bRMxwm/yxRM3fbmX5FnZxThTy opP8vMxdJA1w+lwiy8RdQxM3GLxjYDGY1BJ3yazx8zSWcs22UnlEWq7dnR3WXTx4 TmuiXtT27amCnQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; s=default; bh=Wfza+JrJUmGDoZXYZGaKKiFZ9tI=; b=Irj wCbBWy0My58o7+s6s5ys6BxiYmNbXlfuQaX5m2o3arIVixNXlq/HiS19TPc8e7Fo +1FaEFMYbRybgWjA+/pSEgbWFqNFBCXGfTrARTrvC5pPrMZ+X0hdBt2mew0kfb18 4lH36Rf5qfZdSQ4M9CsLh9OwDHmkB0sp2L8rA5js= Received: (qmail 82637 invoked by alias); 25 Nov 2016 19:57:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 81920 invoked by uid 89); 25 Nov 2016 19:57:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=lenny, 7359, 1-4, 9437 X-HELO: mail-lf0-f66.google.com Received: from mail-lf0-f66.google.com (HELO mail-lf0-f66.google.com) (209.85.215.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Nov 2016 19:57:29 +0000 Received: by mail-lf0-f66.google.com with SMTP id o20so4119071lfg.3 for ; Fri, 25 Nov 2016 11:57:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :mime-version; bh=eLt1Z/h8gNOOElxSSvsh6djRu7gOPLKCrkCVqEN8P1o=; b=BMl9lnus0uo5DsIFrGyCChW7DjQYfi3nHQ4lNGkmzr7uN8NPk+NVPC+1OdJ8edLK2l Od/ni/mlLrLUikxGFH4bjNhEopbqmA9aW0WhJbMZSltgOvmHK8ObvtGQJxnRaQTgka+d ZmORrx2sS8LJIFwoioVRB2dLmR9QX9YIHDcwek/xfr8SId++anc3syn4CaoA644GtOdy KHgWWySKD5AVWGEFZM0DR26I+oLZ8JkWqxWY2ePWhqKIMnBmxgv/aZm++QYvUJQHSC8R e5iZylMjFzVHQ7mSmDQO2/4S+ubvmO82CfHjGAUEKJDny/qxjEhz0uDwbgp9ajIIWxOk a4jA== X-Gm-Message-State: AKaTC03aBEs2oET/2+TfULMIgIPYjHzG6yLUHHzaqqneO+H3hvqrj+CUa+fljOhL99Ie0w== X-Received: by 10.46.76.26 with SMTP id z26mr5324884lja.9.1480103847129; Fri, 25 Nov 2016 11:57:27 -0800 (PST) Received: from z97-4790k.lan (81-227-159-95-no235.tbcn.telia.com. [81.227.159.95]) by smtp.googlemail.com with ESMTPSA id s7sm9637993lja.14.2016.11.25.11.57.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 11:57:26 -0800 (PST) Message-ID: <1480103846.24382.99.camel@gmail.com> Subject: Hurd port for gcc go PATCH 1-4(23) From: Svante Signell Reply-To: svante.signell@gmail.com To: bug-hurd Cc: gcc-patches , Debian GCC Maintainers Date: Fri, 25 Nov 2016 20:57:26 +0100 Mime-Version: 1.0 Hi, Attached are patches to enable gccgo to build properly on Debian GNU/Hurd on gcc-6 (6-6.2.1-5). The first three patches are Debian-specific: * debian_rules.defs.diff: Enables build of gccgo for GNU/Hurd Define patches for the generated series file: * debian_rules.patch.diff:  Enables split-stack support. * debian_rules.patch.diff:  Does not enable split-stack support. * src_gcc_config_i386_gnu.h.diff: Enable split-stack support The test suite results are as follows: Without split-stack support:               === go Summary === # of expected passes            7359 # of unexpected failures        7 # of expected failures          1 # of untested testcases         10 # of unsupported tests          2                 === libgo Summary === # of expected passes            121 # of unexpected failures        13 With split-stack support:                 === go Summary === # of expected passes            7366 # of unexpected failures        8 # of expected failures          1 # of untested testcases         6 # of unsupported tests          2                 === libgo Summary === # of expected passes            120 # of unexpected failures        14 All failing go tests and more than half of the libgo tests are runtime errors due to exception handling not working as expected: Aborted runtime_sighandler ... fatal error: unexpected signal during runtime execution panic: runtime error: invalid memory address or nil pointer dereference The above problems are probably due to some remaining issues in gnumach/hurd/glibc to be solved. According to Samuel Thibault these problems can be handled late when the patches are accepted upstream or in Debian gcc. Another more annoying gnumch/hurd/glibc bug is that the built program go (go-6 in Debian) gets killed when executed from the shell vi path, but not when issued directly: /usr/bin/go-6 works fine.  go-6 Segmentation fault (core dumped) gdb /usr/bin/go-6 -c ./core warning: Unexpected size of section `.reg2/16883' in core file. Core was generated by `go-6'. Program terminated with signal SIGSEGV, Segmentation fault. warning: Unexpected size of section `.reg2/16883' in core file. #0  0x01e854ae in ?? () (gdb) bt #0  0x01e854ae in ?? () #1  0x00000000 in ?? () Nevertheless, it seems like not so much is left for gccgo working properly on GNU/Hurd. Thanks! Index: gcc-6-6.2.1-4.1/src/gcc/config/i386/gnu.h =================================================================== --- gcc-6-6.2.1-4.1.orig/src/gcc/config/i386/gnu.h +++ gcc-6-6.2.1-4.1/src/gcc/config/i386/gnu.h @@ -37,11 +37,14 @@ along with GCC. If not, see