Message ID | 952ba6f7c288d4198f99437672278473d5bb88f7.camel@gmail.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2419665wrd; Wed, 15 Mar 2023 09:14:56 -0700 (PDT) X-Google-Smtp-Source: AK7set9kReaTTsunD2PRRhkk8QeiRgWFOZOc6dm5U1xGP02qhoym8asH8zV1S9WLG6uFwr4jSndW X-Received: by 2002:a17:906:1751:b0:8b0:f277:5cde with SMTP id d17-20020a170906175100b008b0f2775cdemr7578134eje.32.1678896896078; Wed, 15 Mar 2023 09:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678896896; cv=none; d=google.com; s=arc-20160816; b=YIQ1RA6KKHVATVFmr0ni33LGME1n06HEKj7lzeN8kaOgOJnMLBdcABfLYJIOryHXhy 3iCECUiNza7n+Jo8qiVePCsQzfsDfOaXYM3II669qimJfJeEjyT85uG5xoxZGa9L5mnw JbVdwnDF8DwQ8ZvFlu/iZNdVbxcyJNu6EDuIWEEF7obnDjucFexpPIiD6XnliCbb6U/Z GIrfO52x6KJY+G5xwCXNEkR2a1oV89mu2nl6lsNpOpMxORjLHOaUnyIwn4uQYjkFqGZt Q7SPezhilBR1yoPSup/qENLc2bzqX8b/xwVShU/A0Tf8U3prN32Y6g1+79ksDoIhb53G Dbcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:organization:references:date:cc:to:subject:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=1Axq6YD2VU+Uws0bOUL6qTjhRNJkNycw0aU8CbAQuOc=; b=qNXZJrpMFmhM4fUyfofMcMZUCyNJdh66TWCAi23SF5ndn2k2deYNdp1FBAcrK4tKvj A4sMKUwEWkH/FVjJxSrUv3eI7NeXomZbVp7SIEPNZp1OVbslFUy4BPZ83tAB97YIevaY 6XqQKPak0QwvAFDwS9ohXg8b/WW5+97Xxw9mBCFK2dM1n7LCtHDf4sZjWtXLLrFebLZG C1GBplGG6wXB6Vnu0VCnZrPiiraKfNQeU2fsqCInY5n1K8HYGPKEokq76Pp/hxlyCT5y LUc8K3TPBGTlTzg4m+AXJmNIabTgabJ5D3EVzD3uGIu2zNz+uUSdRBqISqTBTvvS7izo xBFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DH43RujV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c3-20020a056402100300b0050029c65a33si2049308edu.305.2023.03.15.09.14.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 09:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DH43RujV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 18549385828E for <ouuuleilei@gmail.com>; Wed, 15 Mar 2023 16:14:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18549385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678896895; bh=1Axq6YD2VU+Uws0bOUL6qTjhRNJkNycw0aU8CbAQuOc=; h=Subject:To:Cc:Date:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=DH43RujVt5xILEkgh3HOemWBnHHfnAh7xmmMggnqtLHU53gNJld8zB+7woZRM98bA sGCpoxfIRBBue9EHto3um/N1oDNorqjYJydtP2gGsqzSrKKhm6Z4rmzceKFVYVZGly gXts5uA+cX5uxLUejOtfkdGnI2+ZZNcAjV2+byVQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 221503858C5F for <gcc-patches@gcc.gnu.org>; Wed, 15 Mar 2023 16:14:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 221503858C5F Received: by mail-lj1-x22e.google.com with SMTP id g18so20040973ljl.3 for <gcc-patches@gcc.gnu.org>; Wed, 15 Mar 2023 09:14:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678896844; h=mime-version:user-agent:organization:references:date:cc:to:reply-to :from:subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1Axq6YD2VU+Uws0bOUL6qTjhRNJkNycw0aU8CbAQuOc=; b=jokHoEDpkmhpmksyTTk6YDxmjECeGmSLxBQC4wKuHl6BHUMq+NdQOxzygNY3kjdd7Q LQmZK4RFI7711jdneK2pRTkdckNws2NDRNeAoUQPLD1jXgeO6JxNFieUbjDnLnz/DXuG +XmZpTzCpWTsB61oyZitDQAXODXqKLp+PyrNL4xhcqKpeeaY1VpH7wMFBATyEpE1Forc PMg5nSnCgsFtk74UZINspnSthGGJKJyHNqpPy47M3n//zrTtVR4x7ABO7pgIk3JTCEat TA72q4Gw9xiYCDUyUfBxCt/nNjk/Tc2SrIaXVixw/f+N4816VdaylU5yMR/UeRp+GaIc Pl8Q== X-Gm-Message-State: AO0yUKXFY1z1gXgzz2YS5i7URuni1bAknkBwulUVjPeRPj2v2uEebLBE 2TZ8EIT6OQiPo67HvjPiLZtN7nWUqReXjw== X-Received: by 2002:a05:651c:1023:b0:298:b161:feb0 with SMTP id w3-20020a05651c102300b00298b161feb0mr765436ljm.49.1678896844265; Wed, 15 Mar 2023 09:14:04 -0700 (PDT) Received: from G3620.lan ([178.78.231.178]) by smtp.gmail.com with ESMTPSA id e14-20020a05651c038e00b002987088bda4sm882161ljp.69.2023.03.15.09.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 09:14:03 -0700 (PDT) Message-ID: <952ba6f7c288d4198f99437672278473d5bb88f7.camel@gmail.com> Subject: Now gcc-13: [Fwd: [PATCH] gcc-12: Re-enable split-stack support for GNU/Hurd.] To: gcc-patches <gcc-patches@gcc.gnu.org>, Debian Bug Tracking System <submit@bugs.debian.org> Cc: Ian Lance Taylor <iant@golang.org>, Matthias Klose <doko@debian.org> Date: Wed, 15 Mar 2023 17:14:01 +0100 References: <bdea640227a303a971e49d0115946e7c454b3e37.camel@gmail.com> Organization: Home Content-Type: multipart/mixed; boundary="=-7HZ6ixSBJL7kQKtB2heb" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Svante Signell via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: svante.signell@gmail.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760450991756332832?= X-GMAIL-MSGID: =?utf-8?q?1760450991756332832?= |
Series |
Now gcc-13: [Fwd: [PATCH] gcc-12: Re-enable split-stack support for GNU/Hurd.]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Li, Pan2 via Gcc-patches
March 15, 2023, 4:14 p.m. UTC
Package: gcc-snapshot Version: 1:20230315-1 Severity: important Tags: patch User: debian-hurd@lists.debian.org Usertags: hurd Affects: gcc-snapshot X-Debbugs-CC: debian-hurd@lists.debian.org Hello, seems like the patch gcc_config_gnu.h.diff, in debian gcc-12 named: pr104290-followup.diff was lost (again). How can this patch ever become upstreamed?? It seems like sending to gcc-patches is not enough. Create a regression bug? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 is already reported as a regression, it has to be updated to cover upstream releases of gcc-13 now. For gcc-12 Debian has been carrying it as: pr104290-followup.diff Submitting this problem as new bug to Debian/gcc-13/gcc-snapshot! Thanks! Hello, In line of porting the latest build of libgo/go with gcc-12 to GNU/Hurd, support of split-stack was found to be removed. After patching the files in libgo the build of gotools fails: go1: error: '-fsplit-stack' currently only supported on GNU/Linux go1: error: '-fsplit-stack' is not supported by this compiler configuration The attached patch defines OPTION_GLIBC_P(opts) and OPTION_GLIBC that was lost in config/gnu.h, needed to enable split-stack support for GNU/Hurd. This problem happened with the latest commit as discussed in the mail thread starting with https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588973.html . The file first doing this check is: (first error: ..) src/gcc/common/config/i386/i386-common.cc in function: static bool ix86_supports_split_stack (bool report, struct gcc_options *opts ATTRIBUTE_UNUSED) and secondly in:src/gcc/opts.cc: (second error: ...) in function: void finish_options (struct gcc_options *opts, struct gcc_options *opts_set, location_t loc) The checking logic is in function ix86_supports_split_stack(): #if defined(TARGET_THREAD_SPLIT_STACK_OFFSET) && defined(OPTION_GLIBC_P) if (!OPTION_GLIBC_P (opts)) #endif { if (report) error ("%<-fsplit-stack%> currently only supported on GNU/Linux"); return false; } bool ret = true; In case of GNU/Hurd TARGET_THREAD_SPLIT_STACK_OFFSET is defined as well as OPTION_GLIBC_P but OPTION_GLIBC_P(opts) is needed to. The attached patch to src/gcc/config/gnu.h creates that definition. For GNU/Hurd, gnu.h is included in the configure stage: Configuring stage 1 in ./gcc ... Using the following target machine macro files: ... ../../src/gcc/config/gnu.h For a longer history about this bug see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 Additionally, I would propose the text in gcc/common/config/i386/i386-common.cc to change from: error ("%<-fsplit-stack%> currently only supported on GNU/Linux"); to: error ("%<-fsplit-stack%> currently only supported on GLIBC-based systems"); Thanks!
Comments
On Wed, Mar 15, 2023 at 9:14 AM Svante Signell <svante.signell@gmail.com> wrote: > > Package: gcc-snapshot > Version: 1:20230315-1 > Severity: important > Tags: patch > User: debian-hurd@lists.debian.org > Usertags: hurd > Affects: gcc-snapshot > X-Debbugs-CC: debian-hurd@lists.debian.org > > Hello, seems like the patch gcc_config_gnu.h.diff, in debian gcc-12 named: > pr104290-followup.diff was lost (again). > > How can this patch ever become upstreamed?? > > It seems like sending to gcc-patches is not enough. Create a regression bug? > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 is already reported as a > regression, it has to be updated to cover upstream releases of gcc-13 now. > > For gcc-12 Debian has been carrying it as: > pr104290-followup.diff > > Submitting this problem as new bug to Debian/gcc-13/gcc-snapshot! > > Thanks! > > > > ---------- Forwarded message ---------- > From: Svante Signell <svante.signell@gmail.com> > To: gcc-patches <gcc-patches@gcc.gnu.org> > Cc: Ian Lance Taylor <iant@golang.org>, Matthias Klose <doko@debian.org> > Bcc: > Date: Wed, 23 Feb 2022 11:13:50 +0100 > Subject: [PATCH] gcc-12: Re-enable split-stack support for GNU/Hurd. > Hello, > > In line of porting the latest build of libgo/go with gcc-12 to GNU/Hurd, support > of split-stack was found to be removed. > > After patching the files in libgo the build of gotools fails: > go1: error: '-fsplit-stack' currently only supported on GNU/Linux > go1: error: '-fsplit-stack' is not supported by this compiler configuration > > The attached patch defines OPTION_GLIBC_P(opts) and OPTION_GLIBC that was lost > in config/gnu.h, needed to enable split-stack support for GNU/Hurd. > > This problem happened with the latest commit as discussed in the mail thread > starting with https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588973.html > . > > The file first doing this check is: (first error: ..) > src/gcc/common/config/i386/i386-common.cc > in function: > static bool ix86_supports_split_stack (bool report, > struct gcc_options *opts ATTRIBUTE_UNUSED) > > and secondly in:src/gcc/opts.cc: (second error: ...) > in function: > void > finish_options (struct gcc_options *opts, struct gcc_options *opts_set, > location_t loc) > > The checking logic is in function ix86_supports_split_stack(): > #if defined(TARGET_THREAD_SPLIT_STACK_OFFSET) && defined(OPTION_GLIBC_P) > if (!OPTION_GLIBC_P (opts)) > #endif > { > if (report) > error ("%<-fsplit-stack%> currently only supported on GNU/Linux"); > return false; > } > > bool ret = true; > > In case of GNU/Hurd TARGET_THREAD_SPLIT_STACK_OFFSET is defined as well as > OPTION_GLIBC_P but OPTION_GLIBC_P(opts) is needed to. The attached patch to > src/gcc/config/gnu.h creates that definition. For GNU/Hurd, gnu.h is included in > the configure stage: > Configuring stage 1 in ./gcc > ... > Using the following target machine macro files: > ... > ../../src/gcc/config/gnu.h > > For a longer history about this bug see: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 > > Additionally, I would propose the text in gcc/common/config/i386/i386-common.cc > to change from: > error ("%<-fsplit-stack%> currently only supported on GNU/Linux"); > to: > error ("%<-fsplit-stack%> currently only supported on GLIBC-based systems"); If GNU/Hurd requires glibc, then I think it would be simpler to define OPTION_GLIBC and OPTION_GLIBC_P as true. Adding Thomas Schwinge as the GNU/Hurd maintainer. Ian
--- a/src/gcc/config/gnu.h 2022-02-06 11:59:41.000000000 +0100 +++ b/src/gcc/config/gnu.h 2022-02-06 12:00:19.000000000 +0100 @@ -19,6 +19,9 @@ along with GCC. If not, see <http://www.gnu.org/licenses/>. */ +#define OPTION_GLIBC_P(opts) (DEFAULT_LIBC == LIBC_GLIBC) +#define OPTION_GLIBC OPTION_GLIBC_P (&global_options) + #undef GNU_USER_TARGET_OS_CPP_BUILTINS #define GNU_USER_TARGET_OS_CPP_BUILTINS() \ do { \