From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yC/1NeqcA2IzyAAAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 11:52:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aOabLuqcA2LeYgEAG6o9tA (envelope-from ) for ; Wed, 09 Feb 2022 11:52:26 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6253019581 for ; Wed, 9 Feb 2022 11:52:26 +0100 (CET) Received: from localhost ([::1]:38108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHkaH-0002Bz-Ky for larch@yhetil.org; Wed, 09 Feb 2022 05:52:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHk93-0002Zv-DG for guix-patches@gnu.org; Wed, 09 Feb 2022 05:24:17 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHk8o-0001ek-QL for guix-patches@gnu.org; Wed, 09 Feb 2022 05:24:16 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHk8o-00083i-Mg for guix-patches@gnu.org; Wed, 09 Feb 2022 05:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53895] [PATCH 3/5] gnu: gcc: Add compiler-cpu-architectures for aarch64. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Feb 2022 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53895 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53895@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 53895-submit@debbugs.gnu.org id=B53895.164440222730940 (code B ref 53895); Wed, 09 Feb 2022 10:24:02 +0000 Received: (at 53895) by debbugs.gnu.org; 9 Feb 2022 10:23:47 +0000 Received: from localhost ([127.0.0.1]:49968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHk8U-00082o-8s for submit@debbugs.gnu.org; Wed, 09 Feb 2022 05:23:47 -0500 Received: from flashner.co.il ([178.62.234.194]:50048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHk8R-00082Z-J9 for 53895@debbugs.gnu.org; Wed, 09 Feb 2022 05:23:40 -0500 Received: from localhost (unknown [37.46.46.251]) by flashner.co.il (Postfix) with ESMTPSA id DDD55403CD; Wed, 9 Feb 2022 10:23:33 +0000 (UTC) From: Efraim Flashner Date: Wed, 9 Feb 2022 12:21:49 +0200 Message-Id: <35229fe985da5a2027622b247d2c95d2bac4213b.1644401681.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.34.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644403946; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=BrQHQRohvjZDB+e8EDhGz6jkR+oe+DDu9vCq5NDIPzI=; b=kH82fI0c5sQLOX+QR0c4RkwMzZ/MGS/+perZ+tWy4uYCqb3hWd78NqDWEO24eZmWqpkW4U HC1IqIcJo5tBGeTkN6l4SBfiVTzNKB0DiQWZ57RQEMzRYpDsiCO+4n86fS6zmb3tgHoK5E r26oCiFB/RJHtgyCzkPSgUIlSuHb7oQqteHKurhx8Zn/MbX6HgSPPocH9BlJ5AeWk6DxNq /I51fR86/4OJIC0fqTNQJK0i3RyvaOE1oxaztJsfqPyu/C5Dol4Va2bBR0Y/thRyJmfA2U GZOOcb9b2NRLZc148VVUtwg3SmQoGYQyRkvGkQ/omItPus8tltGeYcY8AUuBDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644403946; a=rsa-sha256; cv=none; b=VPz7ZhiTt6xUwlgDcw3p8DCd+WI2Nivfmml7iyDKCCxSGQB/Jo7PZCM0gyN8cZw6TUpTgv TNRtIwJIYcHQdC5XR4qgU9fbBxWjxg10yT8b3UxTXaqc257KZTPdw6880C810hfrGbY1BF CiMOUQesyJ9tMDBlt+6SoS25EEwq3EvUNqYpTjS0lES1jzm8n/pBu3m+kWb+ZZAp0Q2jUF 3J9GRaMJCOlgvxAH1kzy+UQPv6P8W9bBtRBWeS2++u+VUnGd290zm2T12X5CnxcCBQ+Xik HgUtU5hKTqs+P1RxCaqlIhJtH0dxUihbhTphn20KGF6oJEdy+/IG9iGczrowmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6253019581 X-Spam-Score: -2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: qYRrKAM3/6jP * gnu/packages/gcc.scm (%gcc-7.5-aarch64-micro-architectures, %gcc-10-aarch64-micro-architectures): New variables. (gcc-7, gcc-10)[properties]: Add aarch64 compiler-cpu-architectures. --- gnu/packages/gcc.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index efa0baeaa1..726c0eed89 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2014, 2015, 2018 Mark H Weaver ;;; Copyright © 2014, 2015, 2016, 2017, 2019, 2021 Ricardo Wurmus ;;; Copyright © 2015 Andreas Enge -;;; Copyright © 2015, 2016, 2017, 2018, 2020, 2021 Efraim Flashner +;;; Copyright © 2015, 2016, 2017, 2018, 2020, 2021, 2022 Efraim Flashner ;;; Copyright © 2016 Carlos Sánchez de La Lama ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2020 Marius Bakke @@ -525,6 +525,11 @@ (define-public gcc-6 ,@(package-inputs gcc-4.7))))) +(define %gcc-7.5-aarch64-micro-architectures + ;; Suitable '-march' values for GCC 7.5. + ;; TODO: Allow dynamically adding feature flags. + '("armv8-a" "armv8.1-a" "armv8.2-a" "armv8.3-a")) + (define %gcc-7.5-x86_64-micro-architectures ;; Suitable '-march' values for GCC 7.5 (info "(gcc) x86 Options"). '("core2" "nehalem" "westmere" "sandybridge" "ivybridge" @@ -536,6 +541,12 @@ (define %gcc-7.5-x86_64-micro-architectures "znver1" "btver1" "btver2" "geode")) +(define %gcc-10-aarch64-micro-architectures + ;; Suitable '-march' values for GCC 10. + ;; TODO: Allow dynamically adding feature flags. + (append %gcc-7.5-aarch64-micro-architectures + '("armv8.4-a" "armv8.5-a" "armv8.6-a"))) + (define %gcc-10-x86_64-micro-architectures ;; Suitable '-march' values for GCC 10. (append %gcc-7.5-x86_64-micro-architectures @@ -545,7 +556,6 @@ (define %gcc-10-x86_64-micro-architectures "znver2" "znver3"))) - (define-public gcc-7 (package (inherit gcc-6) @@ -566,6 +576,7 @@ (define-public gcc-7 It also includes runtime support libraries for these languages.") (properties `((compiler-cpu-architectures + ("aarch64" ,@%gcc-7.5-aarch64-micro-architectures) ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures)))))) (define-public gcc-8 @@ -619,6 +630,7 @@ (define-public gcc-10 (snippet gcc-canadian-cross-objdump-snippet))) (properties `((compiler-cpu-architectures + ("aarch64" ,@%gcc-10-aarch64-micro-architectures) ("x86_64" ,@%gcc-10-x86_64-micro-architectures)))))) (define-public gcc-11 -- 2.34.0