aboutsummaryrefslogtreecommitdiff
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-05-24 00:32:43 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-05-24 00:32:43 +0000
commitc76a46105140316e3e7dabd3a2e32a0cffa27d5c (patch)
tree8ccf3e5fd16e049367c8571fb4ac0aadef84ce3b /gcc/defaults.h
parentfcb922a9c6f3db27150de3a3998670fb3be4007f (diff)
downloadgcc-c76a46105140316e3e7dabd3a2e32a0cffa27d5c.zip
gcc-c76a46105140316e3e7dabd3a2e32a0cffa27d5c.tar.gz
gcc-c76a46105140316e3e7dabd3a2e32a0cffa27d5c.tar.bz2
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. From-SVN: r223621
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 72b290a..a7455e5 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -1454,6 +1454,16 @@ gen_mem_thread_fence (rtx)
}
#endif
+#ifndef HAVE_memory_barrier
+#define HAVE_memory_barrier 0
+static inline rtx
+gen_memory_barrier ()
+{
+ gcc_unreachable ();
+ return NULL;
+}
+#endif
+
#endif /* GCC_INSN_FLAGS_H */
#endif /* ! GCC_DEFAULTS_H */