[PATCH] print-rtl.c: warning removal

RDBrown@mira.net RDBrown@mira.net
Wed Oct 11 05:14:00 GMT 2000


1009/gcc/print-rtl.c:61: warning: initialization discards qualifiers from pointer target type

2000-10-11  Rodney Brown  <RodneyBrown@mynd.com>

	* print-rtl.c: Constify print_rtx_head.
	* rtl.h: Constify print_rtx_head.

--- gcc/print-rtl.c.orig	Tue Sep 19 13:34:08 2000
+++ gcc/print-rtl.c	Tue Oct 10 18:21:49 2000
@@ -58,7 +58,7 @@
 /* String printed at beginning of each RTL when it is dumped.
    This string is set to ASM_COMMENT_START when the RTL is dumped in
    the assembly output file.  */
-char *print_rtx_head = "";
+const char *print_rtx_head = "";
 
 /* Nonzero means suppress output of instruction numbers and line number
    notes in debugging dumps.
--- gcc/rtl.h.orig	Tue Oct  3 11:48:29 2000
+++ gcc/rtl.h	Tue Oct 10 18:20:56 2000
@@ -1753,7 +1753,7 @@
 extern void fix_sched_param		PARAMS ((const char *, const char *));
 
 /* In print-rtl.c */
-extern char *print_rtx_head;
+extern const char *print_rtx_head;
 extern void debug_rtx			PARAMS ((rtx));
 extern void debug_rtx_list		PARAMS ((rtx, int));
 extern void debug_rtx_range		PARAMS ((rtx, rtx));


More information about the Gcc-patches mailing list