diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-06 06:15:36 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-06 06:15:36 +0000 |
commit | 952f00483ebc3e30bc9f0f76f4b80258e4fcef43 (patch) | |
tree | 5608aad0f59e34928c3ebcd5b5bf7492d6a81e96 /gcc/graph.c | |
parent | b944ea74582a3520691dc4c1ecf8130c8a6491d3 (diff) | |
download | gcc-952f00483ebc3e30bc9f0f76f4b80258e4fcef43.tar.gz |
* gcc.c: Convert prototypes to ISO C90.
* gcc.h: Likewise.
* gcov-dump.c: Likewise.
* gcov-iov.c: Likewise.
* gcse.c: Likewise.
* genattrtab.h: Likewise.
* ggc.h: Likewise.
* global.c: Likewise.
* graph.c: Likewise.
* graph.h: Likewise.
* hosthooks.h: Likewise.
* hooks.h: Likewise.
* hooks.c: Likewise.
* hashtable.h: Likewise.
* hashtable.c: Likewise.
* haifa-sched.c: Likewise.
* integrate.h: Likewise.
* integrate.c: Likewise.
* input.h: Likewise.
* ifcvt.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68995 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graph.c')
-rw-r--r-- | gcc/graph.c | 51 |
1 files changed, 16 insertions, 35 deletions
diff --git a/gcc/graph.c b/gcc/graph.c index 009d8767928..45788a7c3a4 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -1,5 +1,5 @@ /* Output routines for graphical representation. - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This file is part of GCC. @@ -39,17 +39,16 @@ static const char *const graph_ext[] = /* vcg */ ".vcg", }; -static void start_fct PARAMS ((FILE *)); -static void start_bb PARAMS ((FILE *, int)); -static void node_data PARAMS ((FILE *, rtx)); -static void draw_edge PARAMS ((FILE *, int, int, int, int)); -static void end_fct PARAMS ((FILE *)); -static void end_bb PARAMS ((FILE *)); +static void start_fct (FILE *); +static void start_bb (FILE *, int); +static void node_data (FILE *, rtx); +static void draw_edge (FILE *, int, int, int, int); +static void end_fct (FILE *); +static void end_bb (FILE *); /* Output text for new basic block. */ static void -start_fct (fp) - FILE *fp; +start_fct (FILE *fp) { switch (graph_dump_format) { @@ -64,9 +63,7 @@ graph: { title: \"%s\"\nfolding: 1\nhidden: 2\nnode: { title: \"%s.0\" }\n", } static void -start_bb (fp, bb) - FILE *fp; - int bb; +start_bb (FILE *fp, int bb) { switch (graph_dump_format) { @@ -105,9 +102,7 @@ label: \"basic block %d", } static void -node_data (fp, tmp_rtx) - FILE *fp; - rtx tmp_rtx; +node_data (FILE *fp, rtx tmp_rtx) { if (PREV_INSN (tmp_rtx) == 0) { @@ -168,12 +163,7 @@ darkgrey\n shape: ellipse" : "white", } static void -draw_edge (fp, from, to, bb_edge, class) - FILE *fp; - int from; - int to; - int bb_edge; - int class; +draw_edge (FILE *fp, int from, int to, int bb_edge, int class) { const char * color; switch (graph_dump_format) @@ -200,8 +190,7 @@ draw_edge (fp, from, to, bb_edge, class) } static void -end_bb (fp) - FILE *fp; +end_bb (FILE *fp) { switch (graph_dump_format) { @@ -214,8 +203,7 @@ end_bb (fp) } static void -end_fct (fp) - FILE *fp; +end_fct (FILE *fp) { switch (graph_dump_format) { @@ -231,10 +219,7 @@ end_fct (fp) /* Like print_rtl, but also print out live information for the start of each basic block. */ void -print_rtl_graph_with_bb (base, suffix, rtx_first) - const char *base; - const char *suffix; - rtx rtx_first; +print_rtl_graph_with_bb (const char *base, const char *suffix, rtx rtx_first) { rtx tmp_rtx; size_t namelen = strlen (base); @@ -400,9 +385,7 @@ print_rtl_graph_with_bb (base, suffix, rtx_first) /* Similar as clean_dump_file, but this time for graph output files. */ void -clean_graph_dump_file (base, suffix) - const char *base; - const char *suffix; +clean_graph_dump_file (const char *base, const char *suffix) { size_t namelen = strlen (base); size_t suffixlen = strlen (suffix); @@ -434,9 +417,7 @@ clean_graph_dump_file (base, suffix) /* Do final work on the graph output file. */ void -finish_graph_dump_file (base, suffix) - const char *base; - const char *suffix; +finish_graph_dump_file (const char *base, const char *suffix) { size_t namelen = strlen (base); size_t suffixlen = strlen (suffix); |