Hello!

2016-05-30  Uros Bizjak  <ubiz...@gmail.com>

    * gcc.target/i386/iamcu/args.h (clear_non_sret_int_hardware_registers):
    Use correct register when clearing %edx.

Regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline and gcc-6 branch.

Uros.
Index: gcc.target/i386/iamcu/args.h
===================================================================
--- gcc.target/i386/iamcu/args.h        (revision 236882)
+++ gcc.target/i386/iamcu/args.h        (working copy)
@@ -30,7 +30,7 @@
 /* Clear all scratch integer registers, excluding the one used to return
    aggregate.  */
 #define clear_non_sret_int_hardware_registers \
-  asm __volatile__ ("xor %%edx, %%ebx\n\t" \
+  asm __volatile__ ("xor %%edx, %%edx\n\t" \
                    "xor %%ecx, %%ecx\n\t" \
                    ::: "edx", "ecx");
 

Reply via email to