From ee57a66148bae672e53312950c296ef81294f064 Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Sun, 8 Apr 2007 02:00:33 +0400 Subject: [PATCH] re PR target/30289 (avr-gcc: builtin memset(): wrong code) PR target/30289 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as earlyclobber. From-SVN: r123647 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.md | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b422096c176..b7d23c44629 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-04-07 Anatoly Sokolov + + PR target/30289 + * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as + earlyclobber. + 2007-04-07 Bruce Korb * c.opt: Add -Wformat-contains-nul. diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index 0eb88491117..b74f1db3a19 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -491,7 +491,7 @@ (use (match_operand:QI 1 "register_operand" "r")) (use (match_operand:QI 2 "const_int_operand" "n")) (clobber (match_scratch:HI 3 "=0")) - (clobber (match_scratch:QI 4 "=1"))] + (clobber (match_scratch:QI 4 "=&1"))] "" "st %a0+,__zero_reg__ dec %1 @@ -505,7 +505,7 @@ (use (match_operand:HI 1 "register_operand" "!w,d")) (use (match_operand:HI 2 "const_int_operand" "n,n")) (clobber (match_scratch:HI 3 "=0,0")) - (clobber (match_scratch:HI 4 "=1,1"))] + (clobber (match_scratch:HI 4 "=&1,&1"))] "" "*{ if (which_alternative==0) -- 2.30.2