From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43436 invoked by alias); 30 Jul 2018 13:17:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 43414 invoked by uid 89); 30 Jul 2018 13:17:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Jul 2018 13:17:43 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D9368ADD4; Mon, 30 Jul 2018 13:17:41 +0000 (UTC) Date: Mon, 30 Jul 2018 13:17:00 -0000 From: Richard Biener To: Richard Earnshaw cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 08/11] targhooks - provide an alternative hook for targets that never execute speculatively In-Reply-To: <1532684275-13041-9-git-send-email-Richard.Earnshaw@arm.com> Message-ID: References: <1531154299-28349-1-git-send-email-Richard.Earnshaw@arm.com> <1532684275-13041-1-git-send-email-Richard.Earnshaw@arm.com> <1532684275-13041-9-git-send-email-Richard.Earnshaw@arm.com> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2018-07/txt/msg01838.txt.bz2 On Fri, 27 Jul 2018, Richard Earnshaw wrote: > > This hook adds an alternative implementation for the target hook > TARGET_HAVE_SPECULATION_SAFE_VALUE; it can be used by targets that have no > CPU implementations that execute code speculatively. All that is needed for > such targets now is to add: > > #undef TARGET_HAVE_SPECULATION_SAFE_VALUE > #define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed. > > to where you have your other target hooks and you're done. OK. > gcc: > * targhooks.h (speculation_safe_value_not_needed): New prototype. > * targhooks.c (speculation_safe_value_not_needed): New function. > * target.def (have_speculation_safe_value): Update documentation. > * doc/tm.texi: Regenerated. > --- > gcc/doc/tm.texi | 5 +++++ > gcc/target.def | 7 ++++++- > gcc/targhooks.c | 7 +++++++ > gcc/targhooks.h | 1 + > 4 files changed, 19 insertions(+), 1 deletion(-) > > -- Richard Biener SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)