diff options
author | Adrian Straetling <straetling@de.ibm.com> | 2005-06-02 19:46:38 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2005-06-02 19:46:38 +0000 |
commit | d9dfec3ffa4d1af07c38474b5bc84bece27e82ba (patch) | |
tree | 86f9b296978f1d75d4f6149797137f30d70e9c41 | |
parent | 6b02a4997be30a1cb81a573ea3abc68802f10b2a (diff) | |
download | gcc-d9dfec3ffa4d1af07c38474b5bc84bece27e82ba.zip gcc-d9dfec3ffa4d1af07c38474b5bc84bece27e82ba.tar.gz gcc-d9dfec3ffa4d1af07c38474b5bc84bece27e82ba.tar.bz2 |
optabs.c: (expand_bool_compare_and_swap): Emit barrier after unconditional jump.
2005-06-02 Adrian Straetling <straetling@de.ibm.com>
* optabs.c: (expand_bool_compare_and_swap): Emit barrier after
unconditional jump.
From-SVN: r100508
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/optabs.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 407911e..766c4e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-02 Adrian Straetling <straetling@de.ibm.com> + + * optabs.c: (expand_bool_compare_and_swap): Emit barrier after + unconditional jump. + 2005-06-02 Jan Hubicka <jh@suse.cz> * cgraph.c (cgraph_node): Maintain master clones. diff --git a/gcc/optabs.c b/gcc/optabs.c index d3c4934..2e84ac3 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5627,6 +5627,7 @@ expand_bool_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target) emit_jump_insn (bcc_gen_fctn[EQ] (label0)); emit_move_insn (target, const0_rtx); emit_jump_insn (gen_jump (label1)); + emit_barrier (); emit_label (label0); emit_move_insn (target, const1_rtx); emit_label (label1); |