This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Another small warning fix
- To: gcc-patches@gcc.gnu.org
- Subject: Another small warning fix
- From: Bernd Schmidt <bernds@cygnus.co.uk>
- Date: Wed, 4 Aug 1999 15:51:21 +0100 (BST)
This one popped up once I installed the first warning patch.
Bernd
* reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
--- ../../egcs/gcc/reload1.c~ Tue Aug 3 10:35:48 1999
+++ ../../egcs/gcc/reload1.c Wed Aug 4 15:49:08 1999
@@ -1277,7 +1277,7 @@
/* For every operand, see what registers are allowed. */
for (i = 0; i < noperands; i++)
{
- char *p = constraints[i];
+ const char *p = constraints[i];
/* For every alternative, we compute the class of registers allowed
for reloading in CLS, and merge its contents into the reg set
ALLOWED. */