This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove a warning in reload1.c
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Re: Remove a warning in reload1.c
- From: GrahamS <grahams at rcp dot co dot uk>
- Date: Thu, 13 May 1999 17:46:57 +0100
- References: <9973.926581432@upchuck.cygnus.com> <373AAB37.5A62@rcp.co.uk>
- Reply-To: grahams at rcp dot co dot uk
Jeff
Here's the patch I mentioned in my previous mail
Graham
ChangeLog
* reload1.c (maybe_fix_stack_asms): Add const to remove warning.
*** reload1.c.orig Thu May 13 17:38:07 1999
--- reload1.c Thu May 13 17:38:59 1999
*************** static void
*** 1242,1248 ****
maybe_fix_stack_asms ()
{
#ifdef STACK_REGS
! char *constraints[MAX_RECOG_OPERANDS];
enum machine_mode operand_mode[MAX_RECOG_OPERANDS];
struct insn_chain *chain;
--- 1242,1248 ----
maybe_fix_stack_asms ()
{
#ifdef STACK_REGS
! const char *constraints[MAX_RECOG_OPERANDS];
enum machine_mode operand_mode[MAX_RECOG_OPERANDS];
struct insn_chain *chain;
*************** maybe_fix_stack_asms ()
*** 1277,1283 ****
/* For every operand, see what registers are allowed. */
for (i = 0; i < noperands; i++)
{
! 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. */
--- 1277,1283 ----
/* For every operand, see what registers are allowed. */
for (i = 0; i < noperands; 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. */