From patchwork Fri Aug 3 22:44:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 953397 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-483150-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vB5LLTPM"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41j2DX2Znsz9rxx for ; Sat, 4 Aug 2018 08:45:00 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=eHez8VW/xnCrnRJpF8qimtw+uwVbH3NhzEiJogMmAVBQFUsYUt kkyBomOLJOh9NDkyRZq0E6GimpwPxZ23/dImaRVccvl71jxMDAgHoR5Xs2TyCwQG rFIUexjmEOOgZYSCO0JCSM3mH64xrco+2C//xNhohN115Sh2+vF4hk2ug= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=mxusf4Wg94otsGuwmo5hsjqPV2o=; b=vB5LLTPMhs/wdkBFwSTB YYCGIgZHriGETDCYVz8mYLg10oEhPwF0awEaCSBy4OquSGv5q11Pz95ayiImMFVq BFL2k50UMsd2PKrUZwQ2zn6ICDptVzTnXpsJ1lJsBuV/ghTWhfqNtoUB87dyM2/c TPZ6bsWcgYcmhUZWArNRKkY= Received: (qmail 100230 invoked by alias); 3 Aug 2018 22:44:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 100207 invoked by uid 89); 3 Aug 2018 22:44:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=vulnerabilities, Altera, altera, Spectre X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Aug 2018 22:44:51 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1flioT-00031z-6p from Sandra_Loosemore@mentor.com for gcc-patches@gcc.gnu.org; Fri, 03 Aug 2018 15:44:49 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 3 Aug 2018 15:44:46 -0700 To: "gcc-patches@gcc.gnu.org" From: Sandra Loosemore Subject: [nios2, committed] Define TARGET_HAVE_SPECULATION_SAFE_VALUE Message-ID: Date: Fri, 3 Aug 2018 16:44:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 I've checked in this patch to fix the c-c++-common/spec-barrier-1.c test failure on nios2. Per previous discussions about Spectre vulnerabilities with Altera/Intel, this architecture is not affected so no special handling is required here. -Sandra Index: gcc/config/nios2/nios2.c =================================================================== --- gcc/config/nios2/nios2.c (revision 263298) +++ gcc/config/nios2/nios2.c (working copy) @@ -5572,6 +5572,9 @@ nios2_adjust_reg_alloc_order (void) #undef TARGET_CONSTANT_ALIGNMENT #define TARGET_CONSTANT_ALIGNMENT constant_alignment_word_strings +#undef TARGET_HAVE_SPECULATION_SAFE_VALUE +#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-nios2.h"