summaryrefslogtreecommitdiff
path: root/gcc/graph.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-20 22:32:54 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-20 22:32:54 +0000
commitfdeac5cec68297213b829b922bc6dea485688a5b (patch)
tree010843ea91dff778c8ce14704a4f98a412d570ca /gcc/graph.c
parentfc2d3974211b9572b1a272d46b6e7190dadd524f (diff)
downloadgcc-fdeac5cec68297213b829b922bc6dea485688a5b.tar.gz
* rtl.c (rtx_name): Constify a char*.
* rtl.h (rtx_name, fix_sched_param): Likewise. * gmicro/gmicro.c (rtx_name): Remove redundant declaration. (mypr): Use accessor macro, not `rtx_name'. * genemit.c (print_code): Constify a char*. * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'. * genpeep.c (print_code): Constify a char*. * genrecog.c (print_code): Likewise. * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct, end_bb): Add static prototype. (draw_edge): Constify a char*. (end_bb): Remove unused parameter. * haifa-sched.c (fix_sched_param, safe_concat, print_exp print_block_visualization): Constify a char*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graph.c')
-rw-r--r--gcc/graph.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/graph.c b/gcc/graph.c
index 3086e402e56..4f8929d2c63 100644
--- a/gcc/graph.c
+++ b/gcc/graph.c
@@ -36,6 +36,13 @@ static const char *graph_ext[] =
/* vcg */ ".vcg",
};
+static void start_fct PROTO ((FILE *));
+static void start_bb PROTO ((FILE *, int));
+static void node_data PROTO ((FILE *, rtx));
+static void draw_edge PROTO ((FILE *, int, int, int, int));
+static void end_fct PROTO ((FILE *));
+static void end_bb PROTO ((FILE *));
+
/* Output text for new basic block. */
static void
start_fct (fp)
@@ -190,7 +197,7 @@ draw_edge (fp, from, to, bb_edge, class)
int bb_edge;
int class;
{
- char * color;
+ const char * color;
switch (graph_dump_format)
{
case vcg:
@@ -215,9 +222,8 @@ draw_edge (fp, from, to, bb_edge, class)
}
static void
-end_bb (fp, bb)
+end_bb (fp)
FILE *fp;
- int bb ATTRIBUTE_UNUSED;
{
switch (graph_dump_format)
{
@@ -346,7 +352,7 @@ print_rtl_graph_with_bb (base, suffix, rtx_first)
bb = BASIC_BLOCK (i);
/* End of the basic block. */
- end_bb (fp, bb);
+ end_bb (fp);
/* Now specify the edges to all the successors of this
basic block. */