From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 SBgpDb2cA2JGyAAAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 11:51:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uNiHCr2cA2JvwAAA9RJhRA (envelope-from ) for ; Wed, 09 Feb 2022 11:51:41 +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 E140E19377 for ; Wed, 9 Feb 2022 11:51:40 +0100 (CET) Received: from localhost ([::1]:37558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHkZX-0001mK-N1 for larch@yhetil.org; Wed, 09 Feb 2022 05:51:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHk46-00070C-IU for guix-patches@gnu.org; Wed, 09 Feb 2022 05:19:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHk3y-0006zG-4k for guix-patches@gnu.org; Wed, 09 Feb 2022 05:19:10 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHk3y-0007tV-0g for guix-patches@gnu.org; Wed, 09 Feb 2022 05:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53895] [PATCH 0/5] More CPU detection Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Feb 2022 10:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53895 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53895@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164440188630270 (code B ref -1); Wed, 09 Feb 2022 10:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2022 10:18:06 +0000 Received: from localhost ([127.0.0.1]:49942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHk34-0007sA-0w for submit@debbugs.gnu.org; Wed, 09 Feb 2022 05:18:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:55210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHk33-0007s3-6g for submit@debbugs.gnu.org; Wed, 09 Feb 2022 05:18:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHk31-0005YM-MM for guix-patches@gnu.org; Wed, 09 Feb 2022 05:18:05 -0500 Received: from flashner.co.il ([178.62.234.194]:39852) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHk2z-0005vx-5A for guix-patches@gnu.org; Wed, 09 Feb 2022 05:18:03 -0500 Received: from localhost (unknown [37.46.46.251]) by flashner.co.il (Postfix) with ESMTPSA id 9F860403CD; Wed, 9 Feb 2022 10:17:27 +0000 (UTC) From: Efraim Flashner Date: Wed, 9 Feb 2022 12:16:51 +0200 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1644403900; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=wVlitVSeazJnRxBuAnHqiUPWKXEN+IC/uH1+JR7dtzo=; b=A8ari/7DwnwVe6xO1KeLyriyCkx/dfkV7CjF9Xyl4ac48FY/60BykvT9nzFNlZiJWoOwL4 EkSO4iHkis2bYOfOLlIm6bVP0ruCfRPaDbznf1RCgsKnkPFsLheln32b0dZFj/gxbWB8mh 1IylFssyVKA01BDD+mBiQgJRZBew4mJ1GVcIh0glj4U3m905AKdXUHrj4tutfMluwF7vu+ TW8ZsSskX1epguFw4jeR6sIRz1S/2gTfQjpJLVZQDpshkvSV/pbGmDaDuU3yBrkAKv/AKg WDJrQulgxc1du0bLeZSLHW4dS5kQtwDaUfiNm/YRbk5rIjZZx2j34FPvxIilcw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644403900; a=rsa-sha256; cv=none; b=XwVAFhmAWqHWToGMnVfYGjCMSCazNwj8vB207sCWMSzjKzo9WC6p7iBr4zhfOKP+bpWVsP iG0uiL0STTXkXOj1Emrf/oPGIXircAByKCphHnC4pr6TWtHFRRQvJAbt6UKBMwZoxgSB/t +1jOwJcTU0urUyMWb0G8gsuRHLq+Gv29aeffZimHx6+IBKlhqu/TUlFWwx8rmoHWKNA3Aq 3laIr+pQ9GATdTaFS/UVdYNkJwN18gEUt5u5GosdoPbUiPoxzvCtbEhzyWRQT6LaxbFq0N 1qoadAV1Pu1Y4NhrRGRGFZtR17EXavCO3H5ZSr4OGI9nv0jYVMp876PawGFUlA== 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: -1.83 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: E140E19377 X-Spam-Score: -1.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: vqjzVjZDEdAt I noticed that my AMD CPU was showing up as bonnell, which was clearly wrong. I ended up rewriting parts of the x86_64 section (and considered having it also serve for i686) and then tried to add some bits for aarch64. IMO it's worth having the compiler-cpu-architectures for aarch64/armhf, at least until (guix transformations) is taught that for aarch64/armhf to use -mtune in place of -march. Efraim Flashner (5): guix: cpu: Rewrite based on feature flags. gnu: cpu: Add detection for AMD CPUs. gnu: gcc: Add compiler-cpu-architectures for aarch64. gnu: gcc: Add compiler-cpu-architectures for armhf. WIP: guix: cpu: Add detection for aarch64 CPUs. gnu/packages/gcc.scm | 33 +++++++- guix/cpu.scm | 186 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 186 insertions(+), 33 deletions(-) base-commit: 71438cd4222a02b1f89152437c1ea20499baa6a2 -- 2.34.0