summaryrefslogtreecommitdiff
path: root/gcc/mcf.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-07-08 18:13:19 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-07-08 18:13:19 +0000
commite6d46b5a8f1ec4722eb76bc0cb184bd2319a2952 (patch)
treeef43694284cc33f0429bdea4ec67acf874f9e98e /gcc/mcf.c
parentcab4c5107fd3598952fb60e9767e74ef5802225c (diff)
downloadgcc-e6d46b5a8f1ec4722eb76bc0cb184bd2319a2952.tar.gz
mcf.c: Do not include tm.h, tree.h, and langhooks.h.
* mcf.c: Do not include tm.h, tree.h, and langhooks.h. (dump_fixup_graph): Use current_function_name. (adjust_cfg_counts): Likewise. * ira-conflicts.c: Do not include tree.h. (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL. From-SVN: r189361
Diffstat (limited to 'gcc/mcf.c')
-rw-r--r--gcc/mcf.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/mcf.c b/gcc/mcf.c
index b6112100a31..d284fc5a4c2 100644
--- a/gcc/mcf.c
+++ b/gcc/mcf.c
@@ -46,13 +46,8 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "tm.h"
#include "basic-block.h"
-#include "tree.h" /* FIXME: Only for langhooks.h. */
-#include "langhooks.h"
-#include "tree.h"
#include "gcov-io.h"
-
#include "profile.h"
/* CAP_INFINITY: Constant to represent infinite capacity. */
@@ -290,7 +285,7 @@ dump_fixup_graph (FILE *file, fixup_graph_type *fixup_graph, const char *msg)
fnum_edges = fixup_graph->num_edges;
fprintf (file, "\nDump fixup graph for %s(): %s.\n",
- lang_hooks.decl_printable_name (current_function_decl, 2), msg);
+ current_function_name (), msg);
fprintf (file,
"There are %d vertices and %d edges. new_exit_index is %d.\n\n",
fnum_vertices, fnum_edges, fixup_graph->new_exit_index);
@@ -1280,8 +1275,8 @@ adjust_cfg_counts (fixup_graph_type *fixup_graph)
if (dump_file)
{
fprintf (dump_file, "\nCheck %s() CFG flow conservation:\n",
- lang_hooks.decl_printable_name (current_function_decl, 2));
- FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR->next_bb, EXIT_BLOCK_PTR, next_bb)
+ current_function_name ());
+ FOR_EACH_BB (bb)
{
if ((bb->count != sum_edge_counts (bb->preds))
|| (bb->count != sum_edge_counts (bb->succs)))