[{"id":3678152,"web_url":"http://patchwork.ozlabs.org/comment/3678152/","msgid":"<dca8eb64-d9d3-4d0d-af15-dc2e82bc92c3@baylibre.com>","list_archive_url":null,"date":"2026-04-16T12:49:32","subject":"Re: [Patch] gcn: Add --with-multilib-list=default-llvm<version>\n [PR124897]","submitter":{"id":87887,"url":"http://patchwork.ozlabs.org/api/people/87887/","name":"Andrew Stubbs","email":"ams@baylibre.com"},"content":"On 16/04/2026 13:22, Tobias Burnus wrote:\n> Especially for distribution builds, it is much easier to request\n> the compiler to build a (reasonable) set of multilibs as supported\n> by the used-for-build LLVM. Currently, either the default set works\n> or some manual tweaking is required.\n> \n> (GCC uses LLVM's linker and assembler, which is needed during\n> GCC-build time to create GCN version of libgfortran, libc etc.)\n> \n> As suggested in the PR, this patch adds the configure flag\n>    --with-multilib-list=default-llvm<version>\n> \n> Defaulting to the GCC 15 multilib choice before LLVM 19 and\n> to as much multilib as possible since LLVM 19, matching\n> GCC 16's 'default' (which requires LLVM >= 20).\n> \n> Comments, remarks?\n> OK for mainline? If so, which one?\n\n> @@ -4174,6 +4177,15 @@ LLVM 18 for @code{gfx942}, LLVM 19 for the generic @code{gfx9-generic},\n>  while LLVM 20 is required for @code{gfx950}, @code{gfx1153}, and\n>  @code{gfx9-4-generic}.\n>  \n> +The special multilib value @code{default-llvm13} and @code{default-llvm14}\n> +include @code{gfx900}, @code{gfx906}, @code{gfx908}, @code{gfx90a},\n> +@code{gfx90c}, @code{gfx1030}, and @code{gfx1036}; @code{default-llvm15},\n> +@code{default-llvm16}, and @code{default-llvm17} additionally @code{gfx1100}\n> +and @code{gfx1103} (the GCC 15 default).  @code{default-llvm19} matches the\n> +default multilib except that @code{gfx9-4-generic} is replaced by\n> +@code{gfx9-4-generic}.  For @code{default-llvm20} and later, the default\n> +multilib is used.\n\nThe last sentence should \"multilib list\" or maybe \"set of multilibs\" \n(definitely not singular though).\n\nAlso, if this can be made into a table or bullet list or something it \nmight be nicer to read.\n\nAndrew\n\n> \n> Tobias\n> \n> PS: Tested with a couple of values and then checking that\n> gcc/Makefile's TM_MULTILIB_CONFIG=... looks reasonable or\n> that the expected error is printed. Note: 'test' returns\n> zero or not zero (= one) for true and false; for invalid\n> numbers like in '8a -gt 13', it also returns non-zero\n> (for test as a whole, not as in evaluating that subexpression).\n> With Bash: stderr will have 'test: 8a: integer expected'\n> and the exit status code is 2.","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=ge/gBvlg;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=ge/gBvlg","sourceware.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com","sourceware.org; spf=pass smtp.mailfrom=baylibre.com","server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.128.43"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxHsn2H7lz1yHP\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 22:50:03 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id F40924BA903F\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 12:50:01 +0000 (GMT)","from mail-wm1-f43.google.com (mail-wm1-f43.google.com\n [209.85.128.43])\n by sourceware.org (Postfix) with ESMTPS id 94E214BA23F2\n for <gcc-patches@gcc.gnu.org>; Thu, 16 Apr 2026 12:49:34 +0000 (GMT)","by mail-wm1-f43.google.com with SMTP id\n 5b1f17b1804b1-48334ee0aeaso77738915e9.1\n for <gcc-patches@gcc.gnu.org>; Thu, 16 Apr 2026 05:49:34 -0700 (PDT)","from [192.168.0.116]\n (hawk-18-b2-v4wan-166933-cust2553.vm26.cable.virginm.net. [82.37.105.250])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488f581d836sm48977805e9.7.2026.04.16.05.49.32\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Thu, 16 Apr 2026 05:49:32 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org F40924BA903F","OpenDKIM Filter v2.11.0 sourceware.org 94E214BA23F2"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 94E214BA23F2","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 94E214BA23F2","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776343774; cv=none;\n b=rWjnn5XnU2zedPXCsNjGdcqpYc4xRoZLZZgl7z3bGo+C8JuqtIrbJiV/4mhP9Mw6CA76L773HSxERfGYCKbXT3fKh4S9DkikqT1gs/z4WsC6Oc11NYcEq32oEXaaMZHU/yXrPGNabG2Kc1Wi1GrTKzVRFyUqY/jpVPtXzx/zwns=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776343774; c=relaxed/simple;\n bh=f7SxvvZyIQkwmUOmNaSdmDqHc2eHAab470uzyHtJhX4=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;\n b=DHx5w6dS/3yKbJzmx/QS60J30CedUIZx73pzYgdVSWMvy72J7c947hNjzuZEpKBzXYrDsW2eGURwdUCdRknO83xkAazPndmNdR723zTG1OX1jiMWpp1X450W9u4GCVzGDGUUaIX7gu/tNTlN7G2PGtZQOOKG83/EVVF9HGC52VI=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1776343773;\n x=1776948573;\n darn=gcc.gnu.org;\n h=content-transfer-encoding:in-reply-to:content-language:from\n :references:to:subject:user-agent:mime-version:date:message-id:from\n :to:cc:subject:date:message-id:reply-to;\n bh=V+gsdGAyMGeERXrfMrCGFrHQnMzQDA3v2wuDA1UXdEQ=;\n b=ge/gBvlgsCSFsbdlazuc2SXIcdhMB2p9cABxXPsONgI8FpCtl+iAh7SqD3icdy1PU3\n zjaCIJ3zcciJmhpHiLXyvPKFJtJQxH3vieGYC0yY2fQcJ0YD1a+y1RelePWx9ZdAMLPV\n 7gBrzcuUCNJYumfMHt9zq+V3942TyvK8atNAN9SjdiksZUZwX5wFwoi5hDmvqxWxukWO\n UmCy9Ka1XTQu8ifBaBFaprn5Wg8FnLLpw4eyTw0TtUhr8/XcUzhPmzrj8BEIhg2TIzkL\n krC8YmAe1S0Ln3sAz/RFcEQ6cpAit+IEsarD9Y3HAV9uKFXhbKUaF5IxHWBZeMyOBikI\n BuWA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776343773; x=1776948573;\n h=content-transfer-encoding:in-reply-to:content-language:from\n :references:to:subject:user-agent:mime-version:date:message-id\n :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=V+gsdGAyM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9k/AW1OmI4X0k3sLUFc76yg/8NdzmDVpBpvaSUnxImhUV3xKN\n oSzCaBzqQ4xeUukQ1EkqQzyc1xJzboUxm6gfgrBWpy7JKvu3axZ0XpuNyS704FvNLcjmEh5S9PW\n DsMXXSxRbOmg9t9tXkKr8Qq4BH0MioRzk1a8g==","X-Received":"by 2002:a05:600c:3f0a:b0:488:afb5:6a21 with SMTP id\n 5b1f17b1804b1-488d68764b0mr356301055e9.15.1776343773412;\n Thu, 16 Apr 2026 05:49:33 -0700 (PDT)","Message-ID":"<dca8eb64-d9d3-4d0d-af15-dc2e82bc92c3@baylibre.com>","Date":"Thu, 16 Apr 2026 13:49:32 +0100","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [Patch] gcn: Add --with-multilib-list=default-llvm<version>\n [PR124897]","To":"Tobias Burnus <tburnus@baylibre.com>,\n gcc-patches <gcc-patches@gcc.gnu.org>,\n Sandra Loosemore <sloosemore@baylibre.com>","References":"<df6a69d5-df83-4007-8b6b-37aa7781417a@baylibre.com>","From":"Andrew Stubbs <ams@baylibre.com>","Content-Language":"en-US","In-Reply-To":"<df6a69d5-df83-4007-8b6b-37aa7781417a@baylibre.com>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]