From 070b3cd5223758d8f65eeb75bcfdcaeed1b19106 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 31 Jul 2018 20:51:06 +0000 Subject: [PATCH] * targhooks.c (default_have_speculation_safe_value): Add ATTRIBUTE_UNUSED. (backported 30929ff6997501127e0d09e4917eef3f42d33899) Change-Id: I59da0b5a1f07516058eacb291a436e80fc2d52d5 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263180 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/targhooks.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 50fe0d4..d8ad496 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-31 Ian Lance Taylor + + * targhooks.c (default_have_speculation_safe_value): Add + ATTRIBUTE_UNUSED. + 2018-07-31 Richard Earnshaw * targhooks.h (speculation_safe_value_not_needed): New prototype. diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 58c9068..23dd41f 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1967,7 +1967,7 @@ default_optab_supported_p (int, machine_mode, machine_mode, optimization_type) /* Default implementation of TARGET_HAVE_SPECULATION_SAFE_VALUE. */ bool -default_have_speculation_safe_value (bool active) +default_have_speculation_safe_value (bool active ATTRIBUTE_UNUSED) { #ifdef HAVE_speculation_barrier return active ? HAVE_speculation_barrier : true; -- 2.7.4