This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[AVR][4.3, 4.2, 4.1] Fix target/30289
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <eweddington at cso dot atmel dot com>, <aesok at post dot ru>
- Date: Sun, 8 Apr 2007 00:58:00 +0400
- Subject: [AVR][4.3, 4.2, 4.1] Fix target/30289
Hi.
To fix bug 30289, I have committed the following patch.
2007-04-07 Anatoly Sokolov <aesok@post.ru>
PR target/30289
* config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
earlyclobber.
Index: gcc/config/avr/avr.md
===================================================================
--- gcc/config/avr/avr.md (revision 123637)
+++ gcc/config/avr/avr.md (working copy)
@@ -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)
Anatoly.