Hi!
On 2017-05-17T11:02:09+0200, Martin Liška <[email protected]> wrote:
> On 05/17/2017 09:44 AM, Richard Biener wrote:
>> On Tue, May 16, 2017 at 4:55 PM, Martin Liška <[email protected]> wrote:
>>> On 05/16/2017 03:48 PM, Richard Biener wrote:
>>>> On Fri, May 12, 2017 at 3:00 PM, Martin Liška <[email protected]> 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 <[email protected]>
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