aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-17 11:29:04 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-17 11:29:04 -0800
commitc39169c82c278bff88da0fcb05516420fbcf808a (patch)
treec5fe338ba828667922ef001c6df7a932a78412e6 /gcc/expr.h
parentcfb9952179d2ea470461a0ea3ab64c53a9d27fb8 (diff)
downloadgcc-c39169c82c278bff88da0fcb05516420fbcf808a.zip
gcc-c39169c82c278bff88da0fcb05516420fbcf808a.tar.gz
gcc-c39169c82c278bff88da0fcb05516420fbcf808a.tar.bz2
Unify implementations of __builtin_mem_*_fence and __sync_synchronize.
* builtins.c (expand_builtin_mem_thread_fence): Remove. (expand_builtin_mem_signal_fence): Remove. (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence. (expand_builtin_sync_synchronize): Likewise. (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence. * optabs.c (expand_asm_memory_barrier): Split out from expand_builtin_mem_signal_fence. (expand_mem_thread_fence): New, a combination of code from expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize. (expand_mem_signal_fence): Moved and renamed from expand_builtin_mem_signal_fence. (expand_atomic_exchange): Use expand_mem_thread_fence. (expand_atomic_load, expand_atomic_store): Likewise. * expr.h, optabs.h: Update decls. From-SVN: r181451
Diffstat (limited to 'gcc/expr.h')
-rw-r--r--gcc/expr.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/expr.h b/gcc/expr.h
index 2cc8152..4b923a5 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -254,7 +254,6 @@ extern void expand_builtin_setjmp_receiver (rtx);
extern rtx expand_builtin_saveregs (void);
extern void expand_builtin_trap (void);
extern rtx builtin_strncpy_read_str (void *, HOST_WIDE_INT, enum machine_mode);
-extern void expand_builtin_mem_thread_fence (enum memmodel);
/* Functions from expr.c: */