[Bug rtl-optimization/36321] Optimization higher or eqaul to -O2 produce wrong code

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat May 24 16:04:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list