This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/36321] Optimization higher or eqaul to -O2 produce wrong code
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2008 16:03:39 -0000
- Subject: [Bug rtl-optimization/36321] Optimization higher or eqaul to -O2 produce wrong code
- References: <bug-36321-15155@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ubizjak at gmail dot com 2008-05-24 16:03 -------
Can you try this patch:
Index: i386.md
===================================================================
--- i386.md (revision 135849)
+++ i386.md (working copy)
@@ -19707,7 +19707,7 @@
(set_attr "length" "5")])
(define_insn "allocate_stack_worker_64"
- [(set (match_operand:DI 0 "register_operand" "=a")
+ [(set (match_operand:DI 0 "register_operand" "+a")
(unspec_volatile:DI [(match_dup 0)] UNSPECV_STACK_PROBE))
(set (reg:DI SP_REG) (minus:DI (reg:DI SP_REG) (match_dup 0)))
(clobber (reg:DI R10_REG))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36321