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
This commit is contained in:
Richard Sandiford 2015-07-30 13:22:56 +00:00 committed by Richard Sandiford
parent 819ec64c36
commit f7ba7f18e5
2 changed files with 6 additions and 12 deletions

View file

@ -1,3 +1,9 @@
2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
* builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
(expand_builtin_atomic_clear): Remove support for atomic_clear
pattern.
2015-07-30 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison

View file

@ -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