From patchwork Mon Jan 31 08:23:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1586568 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=DgUoIuYN; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JnLhB5sHDz9s8q for ; Mon, 31 Jan 2022 19:24:25 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82441385841A for ; Mon, 31 Jan 2022 08:24:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82441385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1643617461; bh=1bh6yO+m9Qrcuv0m1q+sP+fI63GMNfPJJKTnDDZ5hu8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DgUoIuYN2nJixR9nlSUPQEY58UMFHGVqEewu6z4QUb26zrv1s1w6tJP6tdai8zN8T iFvVT8H8FXYiLmhJRjx7CHmraX/SqCOxZhkUPME9UeO/yQSi2VeNfxqk8rowvR9HlZ znpweQ95T/je0PYXABg/f82YQjlsZDNAfx/ZfKiQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 03E0B3858018 for ; Mon, 31 Jan 2022 08:23:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03E0B3858018 Received: by mail-wm1-x333.google.com with SMTP id bg21-20020a05600c3c9500b0035283e7a012so3801658wmb.0 for ; Mon, 31 Jan 2022 00:23:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=1bh6yO+m9Qrcuv0m1q+sP+fI63GMNfPJJKTnDDZ5hu8=; b=Nodhz/Gu1zGQtxB279bxMzByeM9d4tabYYLdBSrGTtv+W74i4JkZ+E50wRd0Qrfn3S d+CZkeLel+TcmzhPhIAXMXsbF+XE1tokQ8lmB55xVSmDaNgjAoGlOpq6QpsO5nhOuFXe 2GO2F0kc3eJYQ270Ruu8Z2Mnk2wZRIWcPbO2yT2q5O2lU3CxgdJbxurAfumVkXcF7epZ cqAS0cLt5fKZ5a3fHsABDGULknOcR5LgDsYGneqJqIQGVRgIfqyoVMyxXl14HDnyfZ36 wDSgyT+33vJzQXt8khy9EHHShjPMevDvCItYeq9jkMKYbaH5CxvK+00omvEU997Dgt/q fadw== X-Gm-Message-State: AOAM532sEHNUGkTzbTMAbC8VOr80/voqkkJBVuWemKYoW2qpmeDiZqsv S5rsAg492aYQHDjlyIx3+X5EccMooCtm9g== X-Google-Smtp-Source: ABdhPJxe7RTuiJKst4i8cM7XJVscnL6Od1lOwoO4ZFPbAbqIv/3dep2ZU2O1kHTBVefAPFcsJb90sQ== X-Received: by 2002:a05:600c:4f0b:: with SMTP id l11mr4039186wmq.126.1643617400020; Mon, 31 Jan 2022 00:23:20 -0800 (PST) Received: from fomalhaut.localnet ([2a01:e0a:41b:84f0:cf71:f5e0:b050:bede]) by smtp.gmail.com with ESMTPSA id bg17sm7028693wmb.2.2022.01.31.00.23.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 00:23:19 -0800 (PST) X-Google-Original-From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Use V8+ default in 32-bit mode on SPARC64/Linux Date: Mon, 31 Jan 2022 09:23:18 +0100 Message-ID: <21349009.EfDdHjke4D@fomalhaut> MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Eric Botcazou via Gcc-patches From: Eric Botcazou Reply-To: Eric Botcazou Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This is what has been done for ages on SPARC/Solaris and makes it possible to use 64-bit atomic instructions even in 32-bit mode. Tested on SPARC64/Linux, applied on the mainline. 2022-01-31 Eric Botcazou PR target/104189 * config/sparc/linux64.h (TARGET_DEFAULT): Add MASK_V8PLUS. diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 46823b62a3f..d08a2ef96fe 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -35,8 +35,8 @@ along with GCC; see the file COPYING3. If not see #if defined(TARGET_64BIT_DEFAULT) && TARGET_CPU_DEFAULT >= TARGET_CPU_v9 #undef TARGET_DEFAULT #define TARGET_DEFAULT \ - (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_STACK_BIAS + \ - MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128) + (MASK_V9 + MASK_64BIT + MASK_PTR64 + MASK_STACK_BIAS + \ + MASK_V8PLUS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128) #endif /* This must be v9a not just v9 because by default we enable