From: Denis Chertykov Date: Tue, 29 Aug 2000 20:23:07 +0000 (+0000) Subject: avr.md ("*movsf","*movsi"): Pass NULL to output_movsisf instead of which_alternative. X-Git-Tag: prereleases/libstdc++-2.92~4369 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=612105a61a150594ef233db883b1bf1ad6501720;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 855819e12f99..ee5b233ab437 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 74bb701429b1..41d1c0101593 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 ace4997fd30d..c3124366b798 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")])