From patchwork Wed Sep 4 10:44:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 1980626 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=2uRjiTIF; 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 4WzK000mKBz1yfv for ; Wed, 4 Sep 2024 20:45:35 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8F4DF3861011 for ; Wed, 4 Sep 2024 10:45:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id E68FD3858428 for ; Wed, 4 Sep 2024 10:45:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E68FD3858428 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E68FD3858428 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725446715; cv=none; b=BgEhlyegq338fB+kl1LIdLYTIrxXAAzRpaGn9yi4ZDpB3rjhJzl6F6I2wepXpZgGiphJf1Zah0nKvBr/okbWvqNsjGUpV9Esf1pAfzproLSSIa4LNxvLJQf3hTGWmJONLOO6CiWLwYSHYns6TOGnVcRGqJ+IR2YE10OElxoJats= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725446715; c=relaxed/simple; bh=P1RkGMmVzVH4Tl9wv1S4rBzeUvdlVb4pqsVgwUe3RVc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=P+RMfZxY3fcoegSKNDc6EtSr5TTTBjLB2EgSUIFRy4bISx0fGAWEL0gdrlmKc7kBqQNKJEjvRfvXDwW0VQ534dfcCD2E3609MQ1/UtnktvvL/u+fIGuDCROsPXgmZh/+0xoih++lilTvn0pmSsfWv54MoYn6JFiAGeiDvCif6U4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42bbd16fca8so43956435e9.0 for ; Wed, 04 Sep 2024 03:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725446709; x=1726051509; darn=gcc.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=XetLTzXyOwanWWm7PlLKMS7BhVvIfJLc7oI2LIpEfF8=; b=2uRjiTIFq7R7jmL3NuKRJDYAJzTz5SJ92DgEAtNNoW5JAJr8MLgEI9yCIDl9nb8IBm sUXXi3oxyoeMDG3X3msOi093qu2iPubWkisp6mpFSUNYUCeDTxbb//+mzZAAGdZlqeBB gUsGg+sF5eSEZPCNHHJ4FHR5lGXN8iPmRBf6x95E7/4L9gTfFG23+UexSlncqEYFuIe8 HSt5oaZCfr2/4qEqcfyrDgRW1wUAzo0j/yQwXwG+rAfgcnT1kLg5ACpUNRHr9vPDzayH DgXZpEnbxWE4DuK7Kxy1a7/b2Alo2DP1BqZSGYIX6kFecyoaaysXik3iioVVlQYcfM0E t8OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725446709; x=1726051509; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XetLTzXyOwanWWm7PlLKMS7BhVvIfJLc7oI2LIpEfF8=; b=OiwPmsr+4nmEkb3zX2rKTDFm4hpkmsE1mGz5IU8XbtsIXuWwpf+XOYamsrliSX8U27 owpsQhFIL6q2R8nQgBQoeahnn6jpF/xTEd3k4on7Vt4oCdNgfbWLKNC5c4pInpkUKI8b /eTEmViC4+mDGwT0yAC8UNwRbNFMdAwvG34g4Zp16P8zth+cki623lMor7Pm4EPVQSya gmjWmuiEFgHu1NOy3NCR3ionq2KXgcisbr/BWkOc1Ntkzlz//qrH6ydxztUsW4QsiWtT VWeKDF35boXPfBjwDCxA3xuJ44oI0wS1uMeyub4GpqKYnYrLSbbCKU9GclUGpP2ctZR+ g+nQ== X-Gm-Message-State: AOJu0YzEOvDsRZDItN4aZf7CsrlQ89qYiqjUSflItOxNCtoGsdrPHbwS QWbx7bJiqAjm3cfa5ZGAvSXTSf2ba6tAvcf/qQPCHZdlioFs2uNZCsqLWA9D+90wj263sbdMmw8 9 X-Google-Smtp-Source: AGHT+IGDfDWhQkM+SMlDF8JM7+86jw3IB4FpnsM6zGrE9aWdz95Aanb6dJzIXujrZomFK7Zhnv1yWQ== X-Received: by 2002:a5d:51cf:0:b0:374:c9f0:752d with SMTP id ffacd0b85a97d-374f9e39a5dmr4253544f8f.47.1725446709426; Wed, 04 Sep 2024 03:45:09 -0700 (PDT) Received: from euler.schwinge.ddns.net (p200300c8b733b9005e8fc6f38b6af531.dip0.t-ipconnect.de. [2003:c8:b733:b900:5e8f:c6f3:8b6a:f531]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-374b61494bcsm13685746f8f.95.2024.09.04.03.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 03:45:09 -0700 (PDT) From: Thomas Schwinge To: gcc-patches@gcc.gnu.org Cc: Frederik Harwath Subject: Fix gimple_debug_cfg declaration (was: [PATCH v2 2/N] Introduce dump_flags_t type and use it instead of int, type) In-Reply-To: <25ccb471-f443-1080-dfb5-7a67b6f3a4d4@suse.cz> References: <668c62b5-9603-47c5-9bfe-266d0d369a1f@suse.cz> <412435ae-4a9b-99ff-cb78-cf157b778303@suse.cz> <8cca10ba-1a98-2e0d-2fbd-ce1c1c4df1c2@suse.cz> <20170506125238.dw2qg5jniyyp7ss2@ball> <15e6b020-65b0-47f5-ee75-cf316e2cac8a@suse.cz> <25ccb471-f443-1080-dfb5-7a67b6f3a4d4@suse.cz> User-Agent: Notmuch/0.30+8~g47a4bad (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Date: Wed, 04 Sep 2024 12:44:58 +0200 Message-ID: <87r09zy9xx.fsf@euler.schwinge.ddns.net> MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 Hi! On 2017-05-17T11:02:09+0200, Martin Liška wrote: > On 05/17/2017 09:44 AM, Richard Biener wrote: >> On Tue, May 16, 2017 at 4:55 PM, Martin Liška wrote: >>> On 05/16/2017 03:48 PM, Richard Biener wrote: >>>> On Fri, May 12, 2017 at 3:00 PM, Martin Liška wrote: >>>>> Second part changes 'int flags' to a new typedef. >>>>> All corresponding interfaces have been changed. > installed as r248140. Long ago, Frederik found that while the 'gimple_debug_cfg' definition had been adjusted: | --- a/gcc/tree-cfg.c | +++ b/gcc/tree-cfg.c | @@ -2372,7 +2372,7 @@ gimple_debug_bb_n (int n) | (see TDF_* in dumpfile.h). */ | | void | -gimple_debug_cfg (int flags) | +gimple_debug_cfg (dump_flags_t flags) | { | gimple_dump_cfg (stderr, flags); | } ..., but it's prototype had not been: | --- a/gcc/tree-cfg.h | +++ b/gcc/tree-cfg.h | extern void gimple_debug_cfg (int); ..., and (unfortunately only) fixed that on a development branch. As obvious, I've now pushed to trunk branch commit 347a953d855c6b246b1604bdf4728f615cb471b6 "Fix gimple_debug_cfg declaration", see attached. Grüße Thomas From 347a953d855c6b246b1604bdf4728f615cb471b6 Mon Sep 17 00:00:00 2001 From: Frederik Harwath Date: Tue, 16 Nov 2021 16:08:40 +0100 Subject: [PATCH] Fix gimple_debug_cfg declaration Silence a warning. The argument type did not match the definition. gcc/ChangeLog: * tree-cfg.h (gimple_debug_cfg): Change argument type from int to dump_flags_t. --- gcc/tree-cfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-cfg.h b/gcc/tree-cfg.h index 0564b79b4ab..e55991740e8 100644 --- a/gcc/tree-cfg.h +++ b/gcc/tree-cfg.h @@ -45,7 +45,7 @@ extern void clear_special_calls (void); extern edge find_taken_edge (basic_block, tree); extern void gimple_debug_bb (basic_block); extern basic_block gimple_debug_bb_n (int); -extern void gimple_debug_cfg (int); +extern void gimple_debug_cfg (dump_flags_t); extern void gimple_dump_cfg (FILE *, dump_flags_t); extern void dump_cfg_stats (FILE *); extern void debug_cfg_stats (void); -- 2.34.1