summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-04-28 05:03:09 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-04-28 05:03:09 +0000
commit2ca202e792186e9641f933ad0830266dbace0eeb (patch)
treefe6f1039398672aa41a8e7ee84c0d75a91f4b324 /gcc/optabs.c
parentb6f9abcfe37f1b295c17b97f351465467e47921d (diff)
downloadgcc-2ca202e792186e9641f933ad0830266dbace0eeb.tar.gz
bt-load.c, [...]: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate.
* bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c, function.c, global.c, lcm.c, loop-invariant.c, optabs.c, reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate. From-SVN: r98913
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index d67c6ce8917..3b3250aac3b 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -5554,7 +5554,7 @@ expand_bool_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
/* Ensure that if old_val == mem, that we're not comparing
against an old value. */
- if (GET_CODE (old_val) == MEM)
+ if (MEM_P (old_val))
old_val = force_reg (mode, old_val);
subtarget = expand_val_compare_and_swap_1 (mem, old_val, new_val,