Lost code in SUBREG byte offset patch.

Vladimir Makarov vmakarov@toke.toronto.redhat.com
Wed Apr 11 07:19:00 GMT 2001


Hello,

  The following code has been lost in huge Subreg byte offset patch
committed several days ago.

Vladimir Makarov

2001-04-11  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>

	* reload.c (push_reload): Add condition missed in SUBREG byte
	offset patch.

Index: reload.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload.c,v
retrieving revision 1.144
diff -p -c -r1.144 reload.c
*** reload.c	2001/04/03 15:05:23	1.144
--- reload.c	2001/04/11 14:07:19
*************** push_reload (in, out, inloc, outloc, cla
*** 944,949 ****
--- 944,950 ----
       no choice, so we hope we do get the right register class there.  */
  
    if (in != 0 && GET_CODE (in) == SUBREG
+       && (SUBREG_BYTE (in) == 0 || strict_low)
  #ifdef CLASS_CANNOT_CHANGE_MODE
        && (class != CLASS_CANNOT_CHANGE_MODE
  	  || ! CLASS_CANNOT_CHANGE_MODE_P (GET_MODE (SUBREG_REG (in)), inmode))



More information about the Gcc-patches mailing list