Skip to content

Commit 218fdc5

Browse files
committed
Conditionalize declaration of dump_generic_node
1 parent c44b237 commit 218fdc5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

gcc-python-compat.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,20 @@ dump_gimple_stmt (pretty_printer *buffer, gimple gs, int spc, int flags);
4343

4444

4545
/*
46-
This is declared in gcc/tree-pretty-print.c (around line 580); it doesn't
47-
seem to be declared in any of the plugin headers:
46+
This is declared in gcc/tree-pretty-print.c (around line 580); it was only
47+
exposed to plugin headers (in tree-pretty-print.h) in GCC commit r203113
48+
(aka 0d9585ca35b919263b973afb371f0eda04857159, 2013-10-02), as part of
49+
GCC 4.9
50+
51+
The signature was changed by GCC 8 commit r248140 (aka
52+
3f6e5ced7eb1cf5b3212b2391c5b70ec3dcaf136, 2017-05-17), which introduced
53+
dump_flags_t.
4854
*/
55+
#if GCC_VERSION < 4009
4956
extern int
5057
dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
5158
bool is_stmt);
59+
#endif
5260

5361
/* Within gcc/gcc-internal.h, not exposed by plugin API */
5462
extern bool ggc_force_collect;

0 commit comments

Comments
 (0)