summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-24 00:32:43 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-24 00:32:43 +0000
commit6b5c01beb828bc0762ac6d8d7d3921dd499f4a78 (patch)
tree8ccf3e5fd16e049367c8571fb4ac0aadef84ce3b /gcc/optabs.c
parenteaa700f27781fd336eee9812f2d7d70e54d0399d (diff)
downloadgcc-6b5c01beb828bc0762ac6d8d7d3921dd499f4a78.tar.gz
always define HAVE_memory_barrier
gcc/ChangeLog: 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * defaults.h (gen_memory_barrier): New function. (HAVE_memory_barrier): Add default value. * optabs.c: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 197e4aef5f4..d3c1d21d445 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -7589,11 +7589,6 @@ expand_asm_memory_barrier (void)
/* This routine will either emit the mem_thread_fence pattern or issue a
sync_synchronize to generate a fence for memory model MEMMODEL. */
-#ifndef HAVE_memory_barrier
-# define HAVE_memory_barrier 0
-# define gen_memory_barrier() (gcc_unreachable (), NULL_RTX)
-#endif
-
void
expand_mem_thread_fence (enum memmodel model)
{