* 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
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.
+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
#include "tree-ssanames.h"
#include "gimple-ssa.h"
#include "tree-dfa.h"
-#include "tree-dump.h"
/* Gimple parsing functions. */
#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
#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. */
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
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);
+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
#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"
#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"
#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. */
#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.
#include "print-tree.h"
#include "langhooks.h"
#include "tree-inline.h"
-#include "tree-dump.h"
+#include "dumpfile.h"
#include "gimplify.h"
#include "debug.h"
}
}
-/* 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
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 */
#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"