From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.burntcomma.com (mail.burntcomma.com [IPv6:2a02:8012:8cf0:250::6d61:696c]) by sourceware.org (Postfix) with ESMTPS id 40D133858CDB for ; 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 To: gcc-patches@gcc.gnu.org Cc: Mark Harmstone 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 List-Id: 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(-) 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