From patchwork Tue Oct 2 16:19:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 147993 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5356462lji; Tue, 2 Oct 2018 09:21:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60O3VmsEVcHdoBTzRPBn3RtqbCCV5EIQO97Vne6wqvt9bGBGjWw4A2WhRrnmGj52cBQjzyn X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr17532752plp.18.1538497307375; Tue, 02 Oct 2018 09:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538497307; cv=none; d=google.com; s=arc-20160816; b=JXvgK28TdJNfrxCq9Z7Kk980x/MmxvPXYPdSHODlGBdRsIC6fNDF9xakE1ht42wlL2 pvkzY9GJ2il8WF+eMnkC5o//8a0mOL+m45MfKIh90ZTBsw0JoA1dbvDf6nJkNmu3i6d+ rZlF15Nd4tGC5+MlqMXXT6V2FghXAqvMh7WyQ3UQOzRnxsg1cEEOjlzPFF1/uqqK5OYx dNVoogt3U1ruFYV1BIpVkMCH3Jbk5KK29bsKSb09wi5Hq4JEMqF/CuwUNEDDDYvxG2zJ uG7Pv7PR1krciLXZvjHISS6I3e3TpWec9hh4d5/+BzeJ9oJeKJs2LaVs4PiH+kS4NjE4 s3Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=g5WJ9co6zXi1mcpKsZR31vsEQRYAsWozTQC4mRHO+ck=; b=vTsTKKCnOUbGGP5iz3MO3YkE3MMGHIZ0HmXTsXEesI/2yuO2x+gp17L6h8fcouEkV3 FXIHbXdb/cwn3r1p3i5MPLJQn9pIm3A7UKDNY8SK/a2KnZyHU9Xr0a8crI9rKU12CGMG fyilkJ2b59suF6HS3MFuHpWa0SNv2ElwvBLf92UMM94hwWgyoqPFPaN0EEg80IoArSd8 i5JCWeiKStt1tAZ1lnSlYqIiip3U2NOeTsfvolMRRIQkpHj7P75pokPelf7Zl3UPsfye Zg73nsM+TXTMdnHD8zktPOlYCRDccfn006k5zMSs3F8LKzfzSDyj5uoZgqFkIZNAGgu2 XTbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=MMdpP3Sz; dkim=pass header.i=@linaro.org header.s=google header.b=Qmbc+4dE; spf=pass (google.com: domain of gcc-patches-return-486825-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-486825-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b9-v6si11788400plx.20.2018.10.02.09.21.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 09:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-486825-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=MMdpP3Sz; dkim=pass header.i=@linaro.org header.s=google header.b=Qmbc+4dE; spf=pass (google.com: domain of gcc-patches-return-486825-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-486825-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=p8ruwJohPLyZIVUUrfcr83krStIXlgufPbIWHdx0iZ8CapLKNFWwz Ady1kte8BZoy9PqYexTgiDXEOShd9PZKHXYf+CkAaVp0z2mCRyCj6kGIw1a7g2si zN3K6cpsOhFs0KBwylsFjWtwySOF5Rezm6vHvl9LqGXBJ3t3sBK8TA= 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:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=6jSE99WjIbSHz63MTeEivqllpzs=; b=MMdpP3Sz9Tg8yGYQeHBH jfrAZ6DQD9geM2XYoQy9MayPYJacj8hFtVTBrIumWLyKhyPNIAqsU4rtvegvrdn7 PrZuKBG4egqJPQ9fvc1Qu2QQl+m7HPyI7BYp8KnGVwXk2FTcWqKQV9uudOoqu9GI VEQIF7vC5mTdXIZFAjLqCQc= Received: (qmail 68778 invoked by alias); 2 Oct 2018 16:19:44 -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 68662 invoked by uid 89); 2 Oct 2018 16:19:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=his X-HELO: mail-ot1-f44.google.com Received: from mail-ot1-f44.google.com (HELO mail-ot1-f44.google.com) (209.85.210.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Oct 2018 16:19:41 +0000 Received: by mail-ot1-f44.google.com with SMTP id e21-v6so2458911otk.10 for ; Tue, 02 Oct 2018 09:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g5WJ9co6zXi1mcpKsZR31vsEQRYAsWozTQC4mRHO+ck=; b=Qmbc+4dE8eNFDAYPJCagyuRMkXmQ0X0GNCAg8i01a2KdUlJ0HD6sT7BIyZfoOHyuq1 szZ33DsnkwMSs+9ZlckHw0ZHED+FS1R85dU7pdjiafPXbwjlRRE2jMSEjD+UT3T4LUpp IHV9P5Y5t2GJu5TNQ02nGMu1zxkZmgPVSWBcc= Return-Path: Received: from cloudburst.twiddle.net ([187.217.227.243]) by smtp.gmail.com with ESMTPSA id j15-v6sm145987oth.27.2018.10.02.09.19.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 09:19:39 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: ramana.radhakrishnan@arm.com, agraf@suse.de, marcus.shawcroft@arm.com, james.greenhalgh@arm.com, richard.earnshaw@arm.com Subject: [PATCH, AArch64 v2 11/11] Enable -matomic-ool by default Date: Tue, 2 Oct 2018 11:19:15 -0500 Message-Id: <20181002161915.18843-12-richard.henderson@linaro.org> In-Reply-To: <20181002161915.18843-1-richard.henderson@linaro.org> References: <20181002161915.18843-1-richard.henderson@linaro.org> Do Not Merge Upstream. This is for agraf and his testing within SLES. --- gcc/common/config/aarch64/aarch64-common.c | 6 ++++-- gcc/config/aarch64/aarch64.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/gcc/common/config/aarch64/aarch64-common.c b/gcc/common/config/aarch64/aarch64-common.c index 292fb818705..3bd1312a3f8 100644 --- a/gcc/common/config/aarch64/aarch64-common.c +++ b/gcc/common/config/aarch64/aarch64-common.c @@ -31,9 +31,11 @@ #include "flags.h" #include "diagnostic.h" -#ifdef TARGET_BIG_ENDIAN_DEFAULT #undef TARGET_DEFAULT_TARGET_FLAGS -#define TARGET_DEFAULT_TARGET_FLAGS (MASK_BIG_END) +#ifdef TARGET_BIG_ENDIAN_DEFAULT +#define TARGET_DEFAULT_TARGET_FLAGS (MASK_BIG_END | MASK_ATOMIC_OOL) +#else +#define TARGET_DEFAULT_TARGET_FLAGS (MASK_ATOMIC_OOL) #endif #undef TARGET_HANDLE_OPTION diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ac2f055a09e..b20d8bbf19b 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -17617,9 +17617,11 @@ aarch64_run_selftests (void) #undef TARGET_C_MODE_FOR_SUFFIX #define TARGET_C_MODE_FOR_SUFFIX aarch64_c_mode_for_suffix -#ifdef TARGET_BIG_ENDIAN_DEFAULT #undef TARGET_DEFAULT_TARGET_FLAGS -#define TARGET_DEFAULT_TARGET_FLAGS (MASK_BIG_END) +#ifdef TARGET_BIG_ENDIAN_DEFAULT +#define TARGET_DEFAULT_TARGET_FLAGS (MASK_BIG_END | MASK_ATOMIC_OOL) +#else +#define TARGET_DEFAULT_TARGET_FLAGS (MASK_ATOMIC_OOL) #endif #undef TARGET_CLASS_MAX_NREGS