diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-05-24 00:32:43 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-05-24 00:32:43 +0000 |
commit | c76a46105140316e3e7dabd3a2e32a0cffa27d5c (patch) | |
tree | 8ccf3e5fd16e049367c8571fb4ac0aadef84ce3b /gcc/defaults.h | |
parent | fcb922a9c6f3db27150de3a3998670fb3be4007f (diff) | |
download | gcc-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.h | 10 |
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 */ |