This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Remove a warning in reload1.c


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]