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]
Other format: [Raw text]

arm.c: Fix calls to alter_subreg().


Hi Guys,

  I am applying the following patch to fix the places in arm.c where
  alter_subreg() is called.  Jan Hubicka changed this function to take
  a pointer to the RTX instead of the RTX itself, but the ARm port was
  not updated at the time.

Cheers
        Nick

2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>

	* config/arm/arm.c (load_multiple_sequence): Pass pointer to
        RTX when calling alter_subreg().
	(store_multiple_sequence): Pass pointer to RTX when calling
        alter_subreg().

Index: gcc/config/arm/arm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.174
diff -p -c -r1.174 arm.c
*** arm.c	2001/12/03 19:13:24	1.174
--- arm.c	2001/12/06 13:43:06
*************** load_multiple_sequence (operands, nops, 
*** 3808,3814 ****
  
        /* Convert a subreg of a mem into the mem itself.  */
        if (GET_CODE (operands[nops + i]) == SUBREG)
! 	operands[nops + i] = alter_subreg (operands[nops + i]);
  
        if (GET_CODE (operands[nops + i]) != MEM)
  	abort ();
--- 3808,3814 ----
  
        /* Convert a subreg of a mem into the mem itself.  */
        if (GET_CODE (operands[nops + i]) == SUBREG)
! 	operands[nops + i] = alter_subreg (operands + (nops + i));
  
        if (GET_CODE (operands[nops + i]) != MEM)
  	abort ();
*************** store_multiple_sequence (operands, nops,
*** 4043,4049 ****
  
        /* Convert a subreg of a mem into the mem itself.  */
        if (GET_CODE (operands[nops + i]) == SUBREG)
! 	operands[nops + i] = alter_subreg (operands[nops + i]);
  
        if (GET_CODE (operands[nops + i]) != MEM)
  	abort ();
--- 4043,4049 ----
  
        /* Convert a subreg of a mem into the mem itself.  */
        if (GET_CODE (operands[nops + i]) == SUBREG)
! 	operands[nops + i] = alter_subreg (operands + (nops + i));
  
        if (GET_CODE (operands[nops + i]) != MEM)
  	abort ();


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