diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2013-01-10 20:49:17 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2013-01-10 20:49:17 +0100 |
commit | ddf9322dcd42914423639c221ba8d10dd267cc4b (patch) | |
tree | 9a47d49d02dc90320186ca2c7a7c8044df8efbde | |
parent | 7f5f8bbfddb14b8b255e7427746ba87dca7a6210 (diff) | |
download | gcc-ddf9322dcd42914423639c221ba8d10dd267cc4b.zip gcc-ddf9322dcd42914423639c221ba8d10dd267cc4b.tar.gz gcc-ddf9322dcd42914423639c221ba8d10dd267cc4b.tar.bz2 |
re PR target/55929 (lra-constraints-ICE while xg++ compile libitm with -Os)
PR target/55929
* config/i386/i386.md (xbegin): Use %eax as a temporary register.
From-SVN: r195094
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 11 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc65d88..17554bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -5,8 +5,7 @@ 2013-01-10 Richard Biener <rguenther@suse.de> - * builtins.c (expand_builtin_init_trampoline): Use - set_mem_attributes. + * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes. 2013-01-10 Richard Biener <rguenther@suse.de> @@ -51,7 +50,8 @@ 2013-01-09 Jan Hubicka <jh@suse.cz> PR lto/45375 - * ipa-inline.c (ipa_inline): Remove extern inlines and virtual functions. + * ipa-inline.c (ipa_inline): Remove extern inlines and virtual + functions. * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data. 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com> diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 95a52cd..8fd1f91 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -18013,19 +18013,22 @@ (define_expand "xbegin" [(set (match_operand:SI 0 "register_operand") - (unspec_volatile:SI [(match_dup 1)] UNSPECV_XBEGIN))] + (unspec_volatile:SI [(const_int 0)] UNSPECV_XBEGIN))] "TARGET_RTM" { rtx label = gen_label_rtx (); - operands[1] = force_reg (SImode, constm1_rtx); + /* xbegin is emitted as jump_insn, so reload won't be able + to reload its operand. Force the value into AX hard register. */ + rtx ax_reg = gen_rtx_REG (SImode, AX_REG); + emit_move_insn (ax_reg, constm1_rtx); - emit_jump_insn (gen_xbegin_1 (operands[1], label)); + emit_jump_insn (gen_xbegin_1 (ax_reg, label)); emit_label (label); LABEL_NUSES (label) = 1; - emit_move_insn (operands[0], operands[1]); + emit_move_insn (operands[0], ax_reg); DONE; }) |