aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-07-30 13:22:56 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-07-30 13:22:56 +0000
commitf7ba7f18e5e7ad165eb81f8a2ed42542b72278bc (patch)
tree2d39f6f7295018ab449b6ceeaa23f607a4e992e9 /gcc/builtins.c
parent819ec64c36cc83cf76a2820774b2baf0d73f45a2 (diff)
downloadgcc-f7ba7f18e5e7ad165eb81f8a2ed42542b72278bc.zip
gcc-f7ba7f18e5e7ad165eb81f8a2ed42542b72278bc.tar.gz
gcc-f7ba7f18e5e7ad165eb81f8a2ed42542b72278bc.tar.bz2
builtins.c (HAVE_atomic_clear, [...]): Delete.
gcc/ * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete. (expand_builtin_atomic_clear): Remove support for atomic_clear pattern. From-SVN: r226405
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 1750e25..d7eb65f 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -5587,12 +5587,6 @@ expand_builtin_atomic_fetch_op (machine_mode mode, tree exp, rtx target,
return ret;
}
-
-#ifndef HAVE_atomic_clear
-# define HAVE_atomic_clear 0
-# define gen_atomic_clear(x,y) (gcc_unreachable (), NULL_RTX)
-#endif
-
/* Expand an atomic clear operation.
void _atomic_clear (BOOL *obj, enum memmodel)
EXP is the call expression. */
@@ -5615,12 +5609,6 @@ expand_builtin_atomic_clear (tree exp)
model = MEMMODEL_SEQ_CST;
}
- if (HAVE_atomic_clear)
- {
- emit_insn (gen_atomic_clear (mem, model));
- return const0_rtx;
- }
-
/* Try issuing an __atomic_store, and allow fallback to __sync_lock_release.
Failing that, a store is issued by __atomic_store. The only way this can
fail is if the bool type is larger than a word size. Unlikely, but