From 5f06c983f3b137a2fe493e80087f2bb72b34d715 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 20 Aug 1999 22:32:54 +0000 Subject: rtl.c (rtx_name): Constify a char*. * 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*. From-SVN: r28782 --- gcc/rtl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index 00abb02..c4a7cbe 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -51,7 +51,7 @@ enum rtx_code { extern int rtx_length[]; #define GET_RTX_LENGTH(CODE) (rtx_length[(int) (CODE)]) -extern char *rtx_name[]; +extern const char * const rtx_name[]; #define GET_RTX_NAME(CODE) (rtx_name[(int) (CODE)]) extern char *rtx_format[]; @@ -1347,7 +1347,7 @@ extern void dump_combine_total_stats PROTO ((FILE *)); extern void schedule_insns PROTO ((FILE *)); #endif #ifdef HAIFA -extern void fix_sched_param PROTO ((char *, char *)); +extern void fix_sched_param PROTO ((const char *, const char *)); #endif /* In print-rtl.c */ -- cgit v1.1