diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-11 15:48:51 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-11 15:48:51 +0000 |
commit | c24e924f928e7a092a7dd829a6eb95c2c95625a3 (patch) | |
tree | c9c6ce3724ccca0a8b77c6921f9f1419ba1db0d3 /gcc | |
parent | 2e3757e78af922758a8ec45c4af78159384a6091 (diff) | |
download | gcc-c24e924f928e7a092a7dd829a6eb95c2c95625a3.zip gcc-c24e924f928e7a092a7dd829a6eb95c2c95625a3.tar.gz gcc-c24e924f928e7a092a7dd829a6eb95c2c95625a3.tar.bz2 |
dumpfle.h (dump_function): Declare here ...
* dumpfle.h (dump_function): Declare here ...
* tree-dump.h (dump_function): ... not here.
* dumpfile.c: #include tree-cfg.h.
(dump_function): Move here from ...
* tree-dump.c (dump_function): ... here.
* gimplify.c: #include splay-tree.h, not tree-dump.h.
* graphite-poly.c: Don't include tree-dump.h.
* cgraphclones.c: Include dumpfile.h not tree-dump.h.
* print-tree.c: Likewise.
* stor-layout.c: Likewise.
* tree-nested.c: Likewise.
c/
* gimple-parser.c: Don't #include tree-dump.h.
fortran/
* trans-decl.c: Include dumpfile.h not tree-dump.h,
From-SVN: r247916
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c/gimple-parser.c | 1 | ||||
-rw-r--r-- | gcc/cgraphclones.c | 2 | ||||
-rw-r--r-- | gcc/dumpfile.c | 17 | ||||
-rw-r--r-- | gcc/dumpfile.h | 1 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/trans-decl.c | 2 | ||||
-rw-r--r-- | gcc/gimplify.c | 2 | ||||
-rw-r--r-- | gcc/graphite-poly.c | 1 | ||||
-rw-r--r-- | gcc/print-tree.c | 2 | ||||
-rw-r--r-- | gcc/stor-layout.c | 2 | ||||
-rw-r--r-- | gcc/tree-dump.c | 16 | ||||
-rw-r--r-- | gcc/tree-dump.h | 1 | ||||
-rw-r--r-- | gcc/tree-nested.c | 2 |
15 files changed, 44 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d60118..f8a0f58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,17 @@ 2017-05-11 Nathan Sidwell <nathan@acm.org> - * dumpfile.h (TDF_FLAGS): New. + * dumpfle.h (dump_function): Declare here ... + * tree-dump.h (dump_function): ... not here. + * dumpfile.c: #include tree-cfg.h. + (dump_function): Move here from ... + * tree-dump.c (dump_function): ... here. + * gimplify.c: #include splay-tree.h, not tree-dump.h. + * graphite-poly.c: Don't include tree-dump.h. + * cgraphclones.c: Include dumpfile.h not tree-dump.h. + * print-tree.c: Likewise. + * stor-layout.c: Likewise. + * tree-nested.c: Likewise. + * dumpfile.c (dump_start): Use TDF_FLAGS. (dump_enable_all): Fix TDF_KIND check thinko. diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 69b1ac3..497c9b9 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2017-05-11 Nathan Sidwell <nathan@acm.org> + + * gimple-parser.c: Don't #include tree-dump.h. + 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> PR testsuite/80580 diff --git a/gcc/c/gimple-parser.c b/gcc/c/gimple-parser.c index ed9e7c5..06f2fdb 100644 --- a/gcc/c/gimple-parser.c +++ b/gcc/c/gimple-parser.c @@ -53,7 +53,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-ssanames.h" #include "gimple-ssa.h" #include "tree-dfa.h" -#include "tree-dump.h" /* Gimple parsing functions. */ diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 69572b9..c4ebbb8 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -78,7 +78,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-eh.h" #include "tree-cfg.h" #include "tree-inline.h" -#include "tree-dump.h" +#include "dumpfile.h" #include "gimple-pretty-print.h" /* Create clone of edge in the node N represented by CALL_EXPR diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index d2e6d3e..d9a84ff 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic-core.h" #include "dumpfile.h" #include "context.h" +#include "tree-cfg.h" /* If non-NULL, return one past-the-end of the matching SUBPART of the WHOLE string. */ @@ -980,6 +981,22 @@ dump_basic_block (int dump_kind, basic_block bb, int indent) dump_bb (alt_dump_file, bb, indent, TDF_DETAILS); } +/* Dump FUNCTION_DECL FN as tree dump PHASE. */ + +void +dump_function (int phase, tree fn) +{ + FILE *stream; + int flags; + + stream = dump_begin (phase, &flags); + if (stream) + { + dump_function_to_file (fn, stream, flags); + dump_end (phase, stream); + } +} + /* Print information from the combine pass on dump_file. */ void diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index df0f11a..19c6d3e 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -147,6 +147,7 @@ extern const char *dump_flag_name (int); extern void dump_printf (int, const char *, ...) ATTRIBUTE_PRINTF_2; extern void dump_printf_loc (int, source_location, const char *, ...) ATTRIBUTE_PRINTF_3; +extern void dump_function (int phase, tree fn); extern void dump_basic_block (int, basic_block, int); extern void dump_generic_expr_loc (int, source_location, int, tree); extern void dump_generic_expr (int, int, tree); diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 98c4990..eda814e 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2017-05-11 Nathan Sidwell <nathan@acm.org> + + * trans-decl.c: Include dumpfile.h not tree-dump.h, + 2017-05-09 Janus Weil <janus@gcc.gnu.org> PR fortran/79311 diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index efff9a1..b2f73b7 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see #include "stor-layout.h" #include "varasm.h" #include "attribs.h" -#include "tree-dump.h" +#include "dumpfile.h" #include "toplev.h" /* For announce_function. */ #include "debug.h" #include "constructor.h" diff --git a/gcc/gimplify.c b/gcc/gimplify.c index fd27eb1..a28a9af 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -56,7 +56,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple-low.h" #include "cilk.h" #include "gomp-constants.h" -#include "tree-dump.h" +#include "splay-tree.h" #include "gimple-walk.h" #include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name */ #include "builtins.h" diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index 5089cd8..5e9323a 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -39,7 +39,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-data-ref.h" #include "pretty-print.h" #include "gimple-pretty-print.h" -#include "tree-dump.h" #include "graphite.h" /* Print to STDERR the GMP value VAL. */ diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 5880d9e..e0db2df 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-iterator.h" #include "gimple-pretty-print.h" /* FIXME */ #include "tree-cfg.h" -#include "tree-dump.h" +#include "dumpfile.h" #include "print-tree.h" /* Define the hash table of nodes already seen. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 10e9a32..1574e43 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -38,7 +38,7 @@ along with GCC; see the file COPYING3. If not see #include "print-tree.h" #include "langhooks.h" #include "tree-inline.h" -#include "tree-dump.h" +#include "dumpfile.h" #include "gimplify.h" #include "debug.h" diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index d6c55eb..fd1783e 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -153,22 +153,6 @@ dump_maybe_newline (dump_info_p di) } } -/* Dump FUNCTION_DECL FN as tree dump PHASE. */ - -void -dump_function (int phase, tree fn) -{ - FILE *stream; - int flags; - - stream = dump_begin (phase, &flags); - if (stream) - { - dump_function_to_file (fn, stream, flags); - dump_end (phase, stream); - } -} - /* Dump pointer PTR using FIELD to identify it. */ void diff --git a/gcc/tree-dump.h b/gcc/tree-dump.h index c4df8f2..6649ed2 100644 --- a/gcc/tree-dump.h +++ b/gcc/tree-dump.h @@ -87,7 +87,6 @@ extern void dump_string (dump_info_p, const char *); extern void dump_string_field (dump_info_p, const char *, const char *); extern void queue_and_dump_index (dump_info_p, const char *, const_tree, int); extern void queue_and_dump_type (dump_info_p, const_tree); -extern void dump_function (int, tree); extern int dump_flag (dump_info_p, int, const_tree); #endif /* ! GCC_TREE_DUMP_H */ diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 48022cd..1c176c3 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -31,7 +31,7 @@ #include "cgraph.h" #include "fold-const.h" #include "stor-layout.h" -#include "tree-dump.h" +#include "dumpfile.h" #include "tree-inline.h" #include "gimplify.h" #include "gimple-iterator.h" |