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: 1849630 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ehNz5MAb; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S8XsN5Stlz20Zj for ; Tue, 17 Oct 2023 10:10:47 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 15DAC385842C for ; Mon, 16 Oct 2023 23:10:45 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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"))