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]

PA64 bugfix



The SUBREG_BYTE changes from the spring broke the PA64 port in a
number of fun ways.  Luckily the changes are easy to fix.

This one fixes execute/900409-1.c, and when used in conjunction with
other similar patches will get the PA64 port back into bootstrapville.

	* pa.c (emit_move_sequence): Fix SUBREG expression to
	use proper byte offset when extending a constant from
	SImode to DImode.

Index: pa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.112
diff -c -3 -p -r1.112 pa.c
*** pa.c	2001/05/07 01:50:52	1.112
--- pa.c	2001/11/08 23:16:48
*************** emit_move_sequence (operands, mode, scra
*** 1649,1655 ****
  	      emit_insn (gen_zero_extendsidi2 (operands[0],
  					       gen_rtx_SUBREG (SImode,
  							       operands[0],
! 							       0)));
  	    }
  
  	  return 1;
--- 1649,1655 ----
  	      emit_insn (gen_zero_extendsidi2 (operands[0],
  					       gen_rtx_SUBREG (SImode,
  							       operands[0],
! 							       4)));
  	    }
  
  	  return 1;




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