From 612105a61a150594ef233db883b1bf1ad6501720 Mon Sep 17 00:00:00 2001 From: Denis Chertykov Date: Tue, 29 Aug 2000 20:23:07 +0000 Subject: [PATCH] avr.md ("*movsf","*movsi"): Pass NULL to output_movsisf instead of which_alternative. * 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. From-SVN: r36048 --- gcc/ChangeLog | 7 +++++++ gcc/config/avr/avr.c | 4 ++++ gcc/config/avr/avr.md | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 855819e12f9..ee5b233ab43 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Wed Aug 30 00:11:42 2000 Denis Chertykov + + * 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. + Tue Aug 29 22:29:58 2000 Denis Chertykov & Marek Michalkiewicz * config/avr/avr-protos.h: (avr_output_ascii) Removed. diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 74bb701429b..41d1c010159 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -4545,6 +4545,10 @@ output_reload_inhi (insn, operands, len) rtx *operands; int *len; { + int tmp; + if (!len) + len = &tmp; + if (GET_CODE (operands[1]) == CONST_INT) { int val = INTVAL (operands[1]); diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index ace4997fd30..c3124366b79 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -269,7 +269,7 @@ (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);" + "* 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,7 +295,7 @@ (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);" + "* 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")])