From 15469812ac10f2c390e1da454a5dbf3635c9d690 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sun, 24 May 2015 00:32:49 +0000 Subject: [PATCH] provide default for HAVE_mem_signal_fence gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_mem_signal_fence): New function. (HAVE_mem_signal_fence): Add default value. * optabs.c: Adjust. From-SVN: r223622 --- gcc/ChangeLog | 6 ++++++ gcc/defaults.h | 10 ++++++++++ gcc/optabs.c | 5 ----- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd0358a976e..5e540b60587 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-23 Trevor Saunders + + * defaults.h (gen_mem_signal_fence): New function. + (HAVE_mem_signal_fence): Add default value. + * optabs.c: Adjust. + 2015-05-23 Trevor Saunders * defaults.h (gen_memory_barrier): New function. diff --git a/gcc/defaults.h b/gcc/defaults.h index a7455e59ec9..50004d59e00 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1464,6 +1464,16 @@ gen_memory_barrier () } #endif +#ifndef HAVE_mem_signal_fence +#define HAVE_mem_signal_fence 0 +static inline rtx +gen_mem_signal_fence (rtx) +{ + gcc_unreachable (); + return NULL; +} +#endif + #endif /* GCC_INSN_FLAGS_H */ #endif /* ! GCC_DEFAULTS_H */ diff --git a/gcc/optabs.c b/gcc/optabs.c index d3c1d21d445..49e1c531c65 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -7608,11 +7608,6 @@ expand_mem_thread_fence (enum memmodel model) /* This routine will either emit the mem_signal_fence pattern or issue a sync_synchronize to generate a fence for memory model MEMMODEL. */ -#ifndef HAVE_mem_signal_fence -# define HAVE_mem_signal_fence 0 -# define gen_mem_signal_fence(x) (gcc_unreachable (), NULL_RTX) -#endif - void expand_mem_signal_fence (enum memmodel model) { -- 2.30.2