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]

avr port bugfix for latest patch



Wed Aug 30 00:11:42 2000  Denis Chertykov  <denisc@overta.ru>

	* config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
	output_movsisf instead of which_alternative.

	* config/avr/avr.c (output_reload_inhi): Check for NULL ponter.

Index: gcc/config/avr/avr.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/avr/avr.c,v
retrieving revision 1.18
diff -c -3 -p -r1.18 avr.c
*** avr.c	2000/08/29 19:37:45	1.18
--- avr.c	2000/08/29 20:10:30
*************** output_reload_inhi (insn, operands, len)
*** 4545,4550 ****
--- 4545,4554 ----
       rtx *operands;
       int *len;
  {
+   int tmp;
+   if (!len)
+     len = &tmp;
+       
    if (GET_CODE (operands[1]) == CONST_INT)
      {
        int val = INTVAL (operands[1]);
Index: gcc/config/avr/avr.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/avr/avr.md,v
retrieving revision 1.8
diff -c -3 -p -r1.8 avr.md
*** avr.md	2000/08/29 19:37:45	1.8
--- avr.md	2000/08/29 20:10:34
***************
*** 269,275 ****
          (match_operand:SI 1 "general_operand"       "r,L,Qm,rL,i,i"))]
    "(register_operand (operands[0],SImode)
      || register_operand (operands[1],SImode) || const0_rtx == operands[1])"
!   "* return output_movsisf (insn, operands, which_alternative);"
    [(set_attr "length" "4,4,8,8,4,10")
     (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
  
--- 269,275 ----
          (match_operand:SI 1 "general_operand"       "r,L,Qm,rL,i,i"))]
    "(register_operand (operands[0],SImode)
      || register_operand (operands[1],SImode) || const0_rtx == operands[1])"
!   "* return output_movsisf (insn, operands, NULL);"
    [(set_attr "length" "4,4,8,8,4,10")
     (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
  
***************
*** 295,301 ****
          (match_operand:SF 1 "general_operand"       "r,G,Qm,r,F,F"))]
    "register_operand (operands[0], SFmode)
     || register_operand (operands[1], SFmode)"
!   "* return output_movsisf (insn, operands, which_alternative);"
    [(set_attr "length" "4,4,8,8,4,10")
     (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
  
--- 295,301 ----
          (match_operand:SF 1 "general_operand"       "r,G,Qm,r,F,F"))]
    "register_operand (operands[0], SFmode)
     || register_operand (operands[1], SFmode)"
!   "* return output_movsisf (insn, operands, NULL);"
    [(set_attr "length" "4,4,8,8,4,10")
     (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
  


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