From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eC5aBLKw6GWMtQAA62LTzQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 19:06:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eC5aBLKw6GWMtQAA62LTzQ (envelope-from ) for ; Wed, 06 Mar 2024 19:06:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=QMLquP94; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709748402; 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:dkim-signature; bh=fDw9/F0cZ+KUZYLIkzbAfauyIe0v/aNub3dudIFL0lE=; b=IAz7K+/toMuFwe2vajfFiXXblHQZHNAjG0xn2wIGkkBOzGyZODE1NGreN4ZgAmZiQyx3t9 6Dhh+7YYj19ziF0L1iys2+/vTsEKXd2hEHUuu3WMnPUH6oCm6D2uxt/OnAi07wC0dSpulC mCW9GCxB4zu5inDD0IX3gs3NtEUQl1ixy8Hi+VcSW2CC9y4PElTbotoQ69G5X1AXq0xlt/ QtqkiZiWr/3NUkB4/AORCxHJZ2dt0jyuvJmbhdlhc/4aiMP74cVercwNfSbrc4mXBgKSb2 j0tOLD2vYaKP9warP15XXstU/Z1PPmcJlsFxgDvjZK/DBcewG6aGAGM7bnMNew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=QMLquP94; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709748402; a=rsa-sha256; cv=none; b=tzVDP2YrF4MAXbjUZVqPj0Ejc/7j68HSaL0qeqWN8XoK6SzLkYwGIg6o1khpVHPVnZwndn 5xJQU/ryo6tp6nmLfAtxybE/lXI1io2XMtzoyNUAZI93Iuaa04FIsH0u0wiPnDodyczYDj mntJsIoVcVq1NamQpIJpdw6AMmTPnCh5ln4rCdWRiKHhjcO67IeY3AzSsG4hoX1wM3dECj QR1wnwLELXAFc9j7JGmkpFsSQ2p1/NgJrhrE7tPTWSKi9nTsoe5269D8R/s91CymGZznIr +0T3RIvGUx7nNN3/z1leAAPuEsOe9OcpUKasee1xPHjMQIDy3aP4OMqnvKT8Yg== 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 E8C242615B for ; Wed, 6 Mar 2024 19:06:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhvez-0004ER-DY; Wed, 06 Mar 2024 13:06:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhvex-0004DW-UE for guix-patches@gnu.org; Wed, 06 Mar 2024 13:06:31 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhvex-00037V-M7 for guix-patches@gnu.org; Wed, 06 Mar 2024 13:06:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhvfS-0005fu-DP for guix-patches@gnu.org; Wed, 06 Mar 2024 13:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69581] [PATCH 05/11] guix: cpu: Enable tuning for i686-linux. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Mar 2024 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69581 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , 69581@debbugs.gnu.org, Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines Received: via spool by 69581-submit@debbugs.gnu.org id=B69581.170974836321729 (code B ref 69581); Wed, 06 Mar 2024 18:07:02 +0000 Received: (at 69581) by debbugs.gnu.org; 6 Mar 2024 18:06:03 +0000 Received: from localhost ([127.0.0.1]:51375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhveU-0005eP-QZ for submit@debbugs.gnu.org; Wed, 06 Mar 2024 13:06:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhveS-0005du-Fh for 69581@debbugs.gnu.org; Wed, 06 Mar 2024 13:06:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhvdp-0002y5-Qb; Wed, 06 Mar 2024 13:05:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fDw9/F0cZ+KUZYLIkzbAfauyIe0v/aNub3dudIFL0lE=; b=QMLquP94RHvNjOS1iwFz eCx9ICQX1lrGKvY4ILOEnCLSaP0bibXmG/Nok5X13JuRS5WvWLy+ae3QcMXedCtD3vdbqbulezd/R zeZOKKZ7CVyOc0VofU1AQSRgMPIYHAzUwgAjwgyT3yg+wV+iSln8P+Te33tGR1jH8tVKB5hak5m/B N4iBFDD1W3C3j06mFKFj86C41Fw68dJ30+BYNGQ1qqLu4+hSxxG4kCbVX3Dz0zK+IK7PmxT1IvxiQ 7dxlZGqwezJX3UfKy27x9WNaeF8LCwb0HPjUzHK9eERZbMWfkxDWFF5nkYkpaX2YsixRjQu/xKeYy BWpmp571vH/vMg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <33a8d78738553f464f5974a0d2cba981e65ced78.1709722620.git.efraim@flashner.co.il> (Efraim Flashner's message of "Wed, 6 Mar 2024 13:06:06 +0200") References: <33a8d78738553f464f5974a0d2cba981e65ced78.1709722620.git.efraim@flashner.co.il> Date: Wed, 06 Mar 2024 19:05:03 +0100 Message-ID: <87o7br9qy8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.68 X-Spam-Score: -5.68 X-Migadu-Queue-Id: E8C242615B X-TUID: va0bRMT6OJZo Efraim Flashner skribis: > * gnu/packages/gcc.scm (gcc-7, gcc-10, gcc-11, gcc-12, gcc-13) > [properties]: In compiler-cpu-architectures use the > x86_64-micro-architectures list for i686. > * guix/cpu.scm (cpu->gcc-architecture): Expand the x86_64 case to also > support i686. [...] > +++ b/gnu/packages/gcc.scm > @@ -673,6 +673,7 @@ (define-public gcc-7 > `((compiler-cpu-architectures > ("aarch64" ,@%gcc-7.5-aarch64-micro-architectures) > ("armhf" ,@%gcc-7.5-armhf-micro-architectures) > + ("i686" ,@%gcc-7.5-x86_64-micro-architectures) > ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures)) Wait, that wouldn=E2=80=99t work on an actual i686 CPU, right? I was surprised to see that GCC built for i686 accepts those flags: guix shell -s i686-linux gcc-toolchain -- gcc -march=3Dskylake /tmp/t.c guix shell -s i686-linux gcc-toolchain -- gcc -march=3Dx86-64-v4 /tmp/t.c If GCC agrees, so be it. LGTM!