From patchwork Wed Sep 26 05:03:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 147538 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp263211lji; Tue, 25 Sep 2018 22:06:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV63syZYbdehY/af1IkCWztUvbpyh3f13Qgj2/aM9A9BJxWdO5epHIcVdGcDCzmmfNUx/XKc7 X-Received: by 2002:a17:902:830b:: with SMTP id bd11-v6mr4128723plb.249.1537938372587; Tue, 25 Sep 2018 22:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537938372; cv=none; d=google.com; s=arc-20160816; b=0oSaxIvVP0MIbxeaumPFZqW2T9KvuhoS/2PUrNpF57cUKlR4hbMUa3r9aAFLeLkWt9 lPThwL8kR6DKLzgiorbpbaZpt4EVVH5R2Upt5TMSAx7GZyEhhZOppWUeYu42/OsSZJZS hDSTJH7exxZdA08ep70bg1uAUQPLjIYgWp9GeP5j7MA+xS94jgHKUBmaHnwGevf7g1ow h4q8HS6MEN+FF1XdJacaALbPlpQiV3EH1cD5fof7lpZCImL/MxGVoBWMCGZnuOHltknZ CDh7Z7rLEKWrxLQzWWqN8uPllAUW28hBuRbYKN99srfRN1J6Z4gGbneJ9d3ZFiHXql7K QoYQ== 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=Ggt/Bc6dgUWfJrfMiRUbfPT3MKoWuEbQSz7lXJNTFdI=; b=RPIK/PalL1fz1gRw/RL1o7B9RbsgmRuwdXE3pWDItnWgtTrgatBkGduQuK2cXMJzbo MaWo6VZXuWoqNXBQV7NbVtCs9rH1hahJEkvQ/c7nZaEVm3HMVpWbE4J+pzeJipOuzANA E+hU4r9Hqn/IejHmDtLmivV8g08WNVI1rzr8+rOZuutBGSihVGaW9dpbcj9BUCO3D7VS b2oGxW6OWqgTkuH3v6DGhlsFL1h8+Cbe+qAb0ZyugHzpuUPF55wpHv4XWM9d6Brll16u MkYo8sew8mhPxoPPUYWjnokUQ9S4rxEhyDtSj1+OFsNKqFBHaU8VHc3tB0H0dN6cZX8B Evpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="nqHt/bmu"; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FIEE1x6p; spf=pass (google.com: domain of gcc-patches-return-486391-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-486391-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b13-v6si4476363plm.275.2018.09.25.22.06.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 22:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-486391-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="nqHt/bmu"; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FIEE1x6p; spf=pass (google.com: domain of gcc-patches-return-486391-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-486391-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=h1ukubCHBnAXhyK+dnuf1+aV+BdmTmp57FsK9rFnOoFVb8AL2tq81 6s7Satr866aeF0IMiqOjz9tS42cJMPHVc9pNL+6XNDZTzwKJmgtsNqX43cosR+vh OrRwhLE0Tp3o5agFefvh4vuKCBUSmgaSFDhh5g61kMwcMoqPWxRXAU= 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=TOp/cRFzhYzsTWFYbEyrXPAQPMU=; b=nqHt/bmuYH6PA+aKwhc2 5H1SgQ6VKy2QR1fwc/r4Zpz2S4lHU6VtVaBAe9Nnws5zfAkq+vbxcJwpmkNTGurO ZLsEKIQOFAKkyvZiBmoBMx5kZhGtnMs6WHNSwwA7YMaTAFFSRJ5y6n/R6Z8Iz4WO 1FvdNXqIEq65/L0Da9MvC+M= Received: (qmail 74767 invoked by alias); 26 Sep 2018 05:04:13 -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 74499 invoked by uid 89); 26 Sep 2018 05:04:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, 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=H*r:sk:85-v6so, HX-Received:sk:o198-v6, HX-Received:cdcf, his X-HELO: mail-pg1-f174.google.com Received: from mail-pg1-f174.google.com (HELO mail-pg1-f174.google.com) (209.85.215.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Sep 2018 05:04:09 +0000 Received: by mail-pg1-f174.google.com with SMTP id 85-v6so10147380pge.6 for ; Tue, 25 Sep 2018 22:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ggt/Bc6dgUWfJrfMiRUbfPT3MKoWuEbQSz7lXJNTFdI=; b=FIEE1x6pXTfUwsOJ1hezfztbKnAFZYfWYBUeaR16hmkpB1K8XOATN4xCMnT+ht1zxg n4825uZFnp9EY9pd9HZ96RcEezJ42P3bH98QYKHQ5jKoKQU4le1+/hkchGm8F33HxBmm qnfQxCjGGCaa+yP/JhaZOQPjGvLYFt2QPx/0YDutebnjTjV9pT35hH90Ilo+4ZxglW1y upUFqAdyWKgK4lBDa2RRfHJS6/CaVCOnyF+WmgtfKyzBeT7AHmr1rA8m5f7b4Wi2bZhN iRPoffLxxwUNTe+48wFMh7yw6mdXLbNOvISvwLEOIFyuBQP3Jjuu9ZWyWKMQhYXzBcbg qFfg== Return-Path: Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id j22-v6sm4954650pfh.45.2018.09.25.22.04.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 22:04:07 -0700 (PDT) From: rth7680@gmail.com To: gcc-patches@gcc.gnu.org Cc: ramana.radhakrishnan@arm.com, agraf@suse.de, matz@suse.de, Richard Henderson Subject: [PATCH, AArch64 11/11] Enable -matomic-ool by default Date: Tue, 25 Sep 2018 22:03:55 -0700 Message-Id: <20180926050355.32746-12-richard.henderson@linaro.org> In-Reply-To: <20180926050355.32746-1-richard.henderson@linaro.org> References: <20180926050355.32746-1-richard.henderson@linaro.org> From: Richard Henderson 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 eca47784730..d2aa9bad5a4 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -17611,9 +17611,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