Message ID | 20231023005531.19921-1-mark@harmstone.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1010700vqx; Sun, 22 Oct 2023 17:56:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMy2oN3EF4HKSbfE2nB93A8IV4VVp7gF3OwWESAlrJ78zDkpA0OL14IgwowAxE2ynQKPRs X-Received: by 2002:a05:6214:d64:b0:66d:3690:7c2f with SMTP id 4-20020a0562140d6400b0066d36907c2fmr10369107qvs.51.1698022575004; Sun, 22 Oct 2023 17:56:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698022574; cv=pass; d=google.com; s=arc-20160816; b=MjHV9Ya33Nm9ugXLdBxV9eWZG3d0MN6SFWmpFz/ASuGx2D+GZObMhSf+30qH1J2Kea gG/6hIplsSSedllPrFnyQGR8a+d8NGbrDEwZMBaOFhPn9iBVjqYPb3bL5O6F0HRvFvLN iIwPLeGLcpEG1Ord6B9ZqzFj0puzY/HNl+LE9WfNDIaxN7c05PI5M0ul2NlE1wtQPq7L y1TmmDsHLvkFqb5/UyQ58x5zntvi3hfZQcMOYt4WJfRlnqFU9yRPHHSPth/utE2rFKZQ zE+uZYU8SDsQ+lEshnJmJXTPMLKCb8C9NVyVuyBCVfCAoGHO9YipODp0QkOZsRUgFSPC eZjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=5TRdKfa2zYTXWTREv7DgMQEiHoy3A74zjqHF6ceYHDE=; fh=ULVDVi0LXJXve4bv6avxt5t1j9fbG672tLMzvs8AGaA=; b=aUJOiAuYG1SmiyXG4tOIk2WRgHqZ0tYpiHCgqpCc2cvDdeCQfmvAuIcPo8mt0hCZ1a AxTtnonzIJGlHDBtbSkdnnmnp9LPi1BnpBkGc93PhLL+m+KNZQqtNsoyo9msJBOtoHZC 0B+5JlJEG8EGt3xWswWuCxhz7nNQ9Q+Ga4UgpxUaZvaWxgw3qpofzO8T1rGRFdjxbdvj GvqPrEZXF5YGFT+XjstnzcRKmV6IcMWOXOURcKCUIyLICu/s8S7uQgDVvddtKTQLSqjg kipbjajI40CcCepByfK6gB9r74jtKwlg9dISs6+wbVVtfByefZdboFUsG4AiWYRrT0B1 PsBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@harmstone.com header.s=mail header.b=26TnJlTK; arc=pass (i=1); 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" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l9-20020a0cd6c9000000b006585a789586si4903366qvi.216.2023.10.22.17.56.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 17:56:14 -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=@harmstone.com header.s=mail header.b=26TnJlTK; arc=pass (i=1); 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C30923858423 for <ouuuleilei@gmail.com>; Mon, 23 Oct 2023 00:56:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.burntcomma.com (mail.burntcomma.com [IPv6:2a02:8012:8cf0:250::6d61:696c]) by sourceware.org (Postfix) with ESMTPS id 40D133858CDB for <gcc-patches@gcc.gnu.org>; Mon, 23 Oct 2023 00:55:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 40D133858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=harmstone.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=harmstone.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 40D133858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:8012:8cf0:250::6d61:696c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698022546; cv=none; b=G6lsebNuYhpWH3rEYpZKeP0CK6FWBTV2hrQ421c9NLlQxd8/d8CoIdNGkJCT5GXHjOYg57hZyDHQHwvw0wKjda55uI3FJUO88yEb6lwNkWk3QzlRrLaH2r05BvlKqO+jkLAa/MYsgwGSp38BCVDz203i4T89jm70k9fFRYlnGi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698022546; c=relaxed/simple; bh=uubnNE727r2+yvEi1+MhP5bdjyQTwyoKedroeBgwsGA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:Mime-Version; b=wgy83I2zpZ+F8JrHjm7aTtT025pMQgI3RQ7kAlBe0JqUQfooUCV+WGYOTgr9SmQObOvAvxJMK4vQND7mGJAPXQmKbMa5QtLM3xn2+WcjuACLMS2YQIYi+qX6B3BrM0DP4QZh3Qj+43HMHNFwhzTHMkkR9kyL97q8akglpgJsdEI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (beren.burntcomma.com [IPv6:2a02:8012:8cf0:0:b62e:99ff:fee9:ad9f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mail.burntcomma.com (Postfix) with ESMTPSA id C49E816B3209D; Mon, 23 Oct 2023 01:55:42 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harmstone.com; s=mail; t=1698022542; bh=5TRdKfa2zYTXWTREv7DgMQEiHoy3A74zjqHF6ceYHDE=; h=From:To:Cc:Subject:Date; b=26TnJlTKiSeLZXJjDWt68ue6bkJj0xNzll6n2+5ygl/f+F/1noEDVpVLtPO9DQ6hm w8WuLIRR11QR2s8sA4Vo49wFChuNlzJ7jfpBh2nOPaSuDJet5zkvwqlcmw5vXvRlGt knGaG1hdmjAhOnKb6Zp4x7qU8aP9xp+qRBdgd7QM= From: Mark Harmstone <mark@harmstone.com> To: gcc-patches@gcc.gnu.org Cc: Mark Harmstone <mark@harmstone.com> Subject: [PATCH 1/5] Remove obsolete debugging formats from names list Date: Mon, 23 Oct 2023 01:55:27 +0100 Message-ID: <20231023005531.19921-1-mark@harmstone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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.30 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780505719389539512 X-GMAIL-MSGID: 1780505719389539512 |
Series |
[1/5] Remove obsolete debugging formats from names list
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Mark Harmstone
Oct. 23, 2023, 12:55 a.m. UTC
STABS and xcoff have been removed, but are still in debug_type_names, which ought to match debug_type_masks. This results in the following minor bug with GCC 13: $ x86_64-pc-linux-gnu-gcc -gvms -c tmp.c cc1: error: target system does not support the ‘dwarf-2’ debug format --- gcc/opts.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Mon, Oct 23, 2023 at 2:56 AM Mark Harmstone <mark@harmstone.com> wrote: > > STABS and xcoff have been removed, but are still in debug_type_names, > which ought to match debug_type_masks. This results in the following > minor bug with GCC 13: > > $ x86_64-pc-linux-gnu-gcc -gvms -c tmp.c > cc1: error: target system does not support the ‘dwarf-2’ debug format OK for trunk and branch. Richard. > --- > gcc/opts.cc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/opts.cc b/gcc/opts.cc > index 573dcf8e497..8015cb7556a 100644 > --- a/gcc/opts.cc > +++ b/gcc/opts.cc > @@ -50,7 +50,7 @@ static void set_Wstrict_aliasing (struct gcc_options *opts, int onoff); > > const char *const debug_type_names[] = > { > - "none", "stabs", "dwarf-2", "xcoff", "vms", "ctf", "btf" > + "none", "dwarf-2", "vms", "ctf", "btf" > }; > > /* Bitmasks of fundamental debug info formats indexed by enum > @@ -65,7 +65,7 @@ static uint32_t debug_type_masks[] = > /* Names of the set of debug formats requested by user. Updated and accessed > via debug_set_names. */ > > -static char df_set_names[sizeof "none stabs dwarf-2 xcoff vms ctf btf"]; > +static char df_set_names[sizeof "none dwarf-2 vms ctf btf"]; > > /* Get enum debug_info_type of the specified debug format, for error messages. > Can be used only for individual debug format types. */ > -- > 2.41.0 >
diff --git a/gcc/opts.cc b/gcc/opts.cc index 573dcf8e497..8015cb7556a 100644 --- a/gcc/opts.cc +++ b/gcc/opts.cc @@ -50,7 +50,7 @@ static void set_Wstrict_aliasing (struct gcc_options *opts, int onoff); const char *const debug_type_names[] = { - "none", "stabs", "dwarf-2", "xcoff", "vms", "ctf", "btf" + "none", "dwarf-2", "vms", "ctf", "btf" }; /* Bitmasks of fundamental debug info formats indexed by enum @@ -65,7 +65,7 @@ static uint32_t debug_type_masks[] = /* Names of the set of debug formats requested by user. Updated and accessed via debug_set_names. */ -static char df_set_names[sizeof "none stabs dwarf-2 xcoff vms ctf btf"]; +static char df_set_names[sizeof "none dwarf-2 vms ctf btf"]; /* Get enum debug_info_type of the specified debug format, for error messages. Can be used only for individual debug format types. */