From patchwork Mon Oct 16 23:10:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 153803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3778162vqb; Mon, 16 Oct 2023 16:10:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnyY+bEIjpuO4wOjKT3c17MjCymmo5AARqQ3arFh8Mn/HtPlRea3aAQmaNM9RZY7oZJPiB X-Received: by 2002:a05:620a:3188:b0:76f:6a9:18a9 with SMTP id bi8-20020a05620a318800b0076f06a918a9mr603416qkb.28.1697497857876; Mon, 16 Oct 2023 16:10:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697497857; cv=pass; d=google.com; s=arc-20160816; b=t50McNXDZ7pSxP1PEWc+sSHowEOEbD4t3WBexAfLoDh9yG6vP6DYHkEYwosGhMMXNo snyTI1nflH5o4NtGEkY6irw0iaLBDmgCD2yTLsjhSkmgdaLBGK+VsAWhocdtocdffCDJ YGcb8bE9l6JAQPqb8xTyaQ3O3oTBxktAksm3UbJHjKZfTlf2DyFnkqP4EjAimGVm4lwN EjlaBETh5+2S2DJvOpqGWcC1AR+NRE7/FFXSkjwPyR5GoJ4Me1l9ijaOtjL2wSwCXW0/ v4gVi+fvOm51TnXqTB/J7DIzm3Edkh4svqqJBK3wT72RZyqXAF7TMRuviOIt7L+zbu7Z +lZg== 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=KWbcnkWX1wrO4tpbvzWaaa1YeY7hawr6JJceojowsyc=; fh=NXemEfxTRbZtBxUkxR2ehQUaYlcDfMdzPkO8MChVQE4=; b=msUc6bdnliBThtB37Up8ZTJTDTw3LQ8f95H1MA1S1uWlKrhxasokFxFQxOjTOGWPo5 uxeom1civ3bW0G2mI/zAv4f3QM07cq+O9LTQV1koxRwndXMDpQyVWDslNb0rToF+uwVz Gl8hiUnP6RfKx55NCGOUwWSKO0TqvJp3thAA986mX9k9iQ1NPEfj+D6IrJWQQWSORjcC V73OORa8rsc/a0Zp5GN/oGWZoJ7ns2ySSoPeMFjFGxPCOkzhQWKZK6M66K4JrSkRyLPw dprkspcTD+YnDiusEj0PYp6qRXGJ/O1tby10TL3SxkVFWGdhpHuxL+iTBdNdgiTbJ+dv AndQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ehNz5MAb; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h6-20020a05620a400600b00767f226bc82si212974qko.315.2023.10.16.16.10.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 16:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ehNz5MAb; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A42ED385800A for ; Mon, 16 Oct 2023 23:10:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 9C4873858D33 for ; Mon, 16 Oct 2023 23:10:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C4873858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9C4873858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697497834; cv=none; b=f+H+CTGYx6Wz/IG8GqCpWvmNmFj2TTIcYHPOBrlj1od9Ld5RoOrUSu5Wmv+7eNFeap5hEaZNAy0XQ9aX0zvW50lJBt0lqx1ez8FZdQhoZBvAyTSpMpE/CtLPfumDzO2Kg6CS+BYnv0kBIL/xB8cdDlrDJa2gO59jZpsLqEg1Dqw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697497834; c=relaxed/simple; bh=H8dJBRMU4mECOS93dCth4jVUA6KiPeA2FXOEex+KX3I=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vCIDCciPpW4FMXgA87WtIe8+pr9ypLKNVSCc8joHUNyZWC8th0titapOvbuvpbKhBoYBDF6f0X0KBBzfv3bRCvGUftbQoHxYVI03XouqKnSpYPCjjlSe3mdMclCZ6OvdSfq9Kcu5uGsnntNgRwhDNvrDnXv4j81xK2hrGd4RmHY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697497832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KWbcnkWX1wrO4tpbvzWaaa1YeY7hawr6JJceojowsyc=; b=ehNz5MAbiWhLTc6m8SM79917MzGKkr4uq1zsQHsru34CDGiuarGx44qvYnh2BcUmw/kZ0p GUTUZ4bQ/eyPo/5YA1LtHNcKOuIW1Ew9EsPxZP5W0Kn5RA9+iEALdhwXYzUqzHFKbUXB3e +0KPsm8cReUwK8zUsTs7cO0oAV2qMq8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-548-g6gXtP3_NhuCw0ZLlQzCwQ-1; Mon, 16 Oct 2023 19:10:30 -0400 X-MC-Unique: g6gXtP3_NhuCw0ZLlQzCwQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 09A1B3822E81 for ; Mon, 16 Oct 2023 23:10:30 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.16.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id C97782166B26; Mon, 16 Oct 2023 23:10:29 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed] diagnostics: fix missing initialization of context->extra_output_kind Date: Mon, 16 Oct 2023 19:10:28 -0400 Message-Id: <20231016231028.60866-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779955513764366182 X-GMAIL-MSGID: 1779955513764366182 Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-4668-gf8644b678285cf. gcc/ChangeLog: * diagnostic.cc (diagnostic_initialize): Ensure context->extra_output_kind is initialized. --- gcc/diagnostic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index 9c15f0d8c50..03637459c56 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -204,7 +204,7 @@ diagnostic_initialize (diagnostic_context *context, int n_opts) context->m_source_printing.min_margin_width = 0; context->m_source_printing.show_ruler_p = false; context->report_bug = false; - + context->extra_output_kind = EXTRA_DIAGNOSTIC_OUTPUT_none; if (const char *var = getenv ("GCC_EXTRA_DIAGNOSTIC_OUTPUT")) { if (!strcmp (var, "fixits-v1"))