From patchwork Mon Oct 2 16:33:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 147370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1545935vqb; Mon, 2 Oct 2023 09:34:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2OX++Jdt8q9RzEWvHVDkYQEc26RypmhI1OReAVd8ry0bNJnB9her+ov8i2cXr7WwOrGE6 X-Received: by 2002:a17:906:2ce:b0:9b3:308:d046 with SMTP id 14-20020a17090602ce00b009b30308d046mr3808640ejk.61.1696264459072; Mon, 02 Oct 2023 09:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696264459; cv=none; d=google.com; s=arc-20160816; b=Ecbm3Knyd5Ei3jCEjGyPLb+Wdi5Zhj87kzDYuHJC1WtVrEPCGdVmrk8fojoS1X3n5B kXPe6mgUI7/8/6b7ZmLIZIpepyGQwe99xLNXrceIHOwU3QMAg5YtJXE22OWBmKRrriYb 1D8tE3twCf0arYBIx3SvGYkuzEEuJdnateXs3cjRhss20NhTFvSNFbI1vIgl7KKnY70+ IZf1I6UI3/9jhDoJCh3j7//FKLft32lMktkLuhe8lfBINYzTK11E6KXTfSv4mUVdPWJM zsPEoQWCgmUOPwS7hGr3OkZNljSY/Bi6qu6BPDHj3CXG6x6koumQwGDhvoPXdUWyMuMZ BiHQ== ARC-Message-Signature: i=1; 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 :dmarc-filter:delivered-to; bh=lOyPDZbuG4ei9CQlj5KRCdCvFXPR8/hBnE4VpxZBgbA=; fh=NXemEfxTRbZtBxUkxR2ehQUaYlcDfMdzPkO8MChVQE4=; b=Ff9lU+CNOsQv6RUP/uxcFzCr9cshVyGMEFFIyq51cgW57CR1MxDJXPUfSjpE1rt88C RHQjodF3EsKi6TKSWpcMO8t74Ps0TWQ7geXTMTOhgeCUqQUsU11CE8x/eOoU2wuk4oHv ibo5eSNNUw7JYjAYQSCpMZoPnLvg1AGOrxL8G7ZTAoSYqMj2nzd0fEoAVEH9w5OWuXuE n7TLIrrEU1OD8MA92chKLHq53AplKkbPJIGb4JPXehQTygFqUZxkTOG2iy2cAETlxp6e 79LAo2b7xEXxTaSA1fLX7GupBplbiwXxhtfQWlC9qGjNgOvL6KGyQ3oBL/qnlzLUg0g+ ikkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I4K8uHzx; 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=redhat.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id cd20-20020a170906b35400b009893415be37si19266231ejb.501.2023.10.02.09.34.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 09:34:19 -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=@redhat.com header.s=mimecast20190719 header.b=I4K8uHzx; 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3138938555AE for ; Mon, 2 Oct 2023 16:33:53 +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 C414A3858C30 for ; Mon, 2 Oct 2023 16:33:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C414A3858C30 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696264394; 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=lOyPDZbuG4ei9CQlj5KRCdCvFXPR8/hBnE4VpxZBgbA=; b=I4K8uHzxp4KfVPTD4EaDGeTifUczhqDTBDe37kiU5PQUfS+JSTUlu8Ekr3XQj5gDDtze00 jccz5n3H+PaGGETgJi4BQFLemP6mIKBmebBPKgbv5xwSHBxlfA1AqgudGV11THKPNZXWEn ljdwWiPpw7r0WRY3Py3EwqlKQiO9I8c= 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-466-WrELB7IsNRGX9Vh-SW-Ilw-1; Mon, 02 Oct 2023 12:33:13 -0400 X-MC-Unique: WrELB7IsNRGX9Vh-SW-Ilw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 C338E29AB40E for ; Mon, 2 Oct 2023 16:33:12 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.18.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C71540C2064; Mon, 2 Oct 2023 16:33:12 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed] diagnostics: fix missing init of set_locations_cb Date: Mon, 2 Oct 2023 12:33:08 -0400 Message-Id: <20231002163308.4034749-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.1 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, RCVD_IN_SBL_CSS, 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: 1778662201278704973 X-GMAIL-MSGID: 1778662201278704973 Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-4366-gc64693fb885f21. gcc/ChangeLog: * diagnostic.cc (diagnostic_initialize): Initialize set_locations_cb to nullptr. --- gcc/diagnostic.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index 00183b10700..28ab74ff23e 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -245,6 +245,7 @@ diagnostic_initialize (diagnostic_context *context, int n_opts) context->begin_group_cb = NULL; context->end_group_cb = NULL; context->final_cb = default_diagnostic_final_cb; + context->set_locations_cb = nullptr; context->ice_handler_cb = NULL; context->includes_seen = NULL; context->m_client_data_hooks = NULL;