From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by sourceware.org (Postfix) with ESMTPS id 731343858D20 for ; Thu, 13 Apr 2023 14:16:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 731343858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb29.google.com with SMTP id h198so22011888ybg.12 for ; Thu, 13 Apr 2023 07:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681395416; x=1683987416; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iVQKVqy+OhL+TaAo2qbHn2v2KIW/dl2qJ2i5rVCdOVM=; b=hTq9y9+6iHrSsMlouFb7Fk0aVx4PBrziPUH5Bfs6/lSA6rHcmQ0C8csjcOP5s0jV+H kpKFOGT7bV/MYleTxFt79qbg3P8u9wWIywG7O2K+NPaTHKHvBcEnkm7UT1biPbKo/GAG Qj4fhhXQ5nHKy6BcyiATfa9DAPyqP7d914sdq81BhYqXZ03+zuX9oSTmO70XX+fLrw5Q g3wxmL6PFPZjhczASa1qlb7l+E4RG8U/dLJzzOuYKL9DsTGpAdVhIWqK+HrCAVkNgoEe e3YtB84wxVDMI3vomLRTjx8RbOSd/4KOw58ziNpHUlHrh4ejKhwx3jV8h89WznXFE8wP 5UzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681395416; x=1683987416; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iVQKVqy+OhL+TaAo2qbHn2v2KIW/dl2qJ2i5rVCdOVM=; b=I/765lD7mAqOyJSWQqRImytXcY3QT1vJ0/utltlOn6YBkp1c0oQKdwCLjFaWWY+wB+ HbiI8WKhnos4N4t4keNsG+IR09ZTOZmLA/gOzXhz+OwKBreKLOnqR+K3dXUcDGag/WBX w4xoXzwABSl0pR50H0n9EAGVxdoyMYL+KK+WSMig/c7NxLJBpiye0lghGxIzylK3Gr5y +IzZJNW9bCzuJlPh35DBwNyxl9ZkbyDUGsnmG6rNvutbnYQ9Duxr+xhsBZeRrFfYFtsE fSlmu8Jkz0FSAP6jZNjldDfhewHdI7iQN5u4qF3Hl9seB7B3J9BQAx7/6KjMFW9bpgkY iyYA== X-Gm-Message-State: AAQBX9fDNyVGG/+Lev7gXIJYjfOq2lgxDwVdqPLK2QTpMOhiHMEJ+qoW hKdyZ+5AUDj/8tCqGG2Zccwtc01O3PMSB4Ae430= X-Google-Smtp-Source: AKy350Zh0+rVHqmmVYXdeKg6JMSomZyUnDUL+MS+ityGGJIn6EbsSWP16Pe0lDAisB0U7ujJtZ1JhNdEZQi5A7YgkcY= X-Received: by 2002:a25:d68a:0:b0:b8f:1d87:5948 with SMTP id n132-20020a25d68a000000b00b8f1d875948mr1545503ybg.10.1681395415641; Thu, 13 Apr 2023 07:16:55 -0700 (PDT) MIME-Version: 1.0 References: <20230413113427.GE19790@gate.crashing.org> In-Reply-To: <20230413113427.GE19790@gate.crashing.org> From: =?UTF-8?Q?Juhani_Viher=C3=A4koski?= Date: Thu, 13 Apr 2023 17:16:45 +0300 Message-ID: Subject: Re: Multiple return values and dynamic typing in a new frontend To: Segher Boessenkool Cc: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="00000000000079ff0e05f9386040" X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000079ff0e05f9386040 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! This sounds like a good idea and more or less obvious, but I didn't think about this option before. to 13. huhtik. 2023 klo 14.36 Segher Boessenkool kirjoitti: > Hi! > > On Thu, Apr 13, 2023 at 01:46:06PM +0300, Juhani Viher=C3=A4koski via Gcc= -help > wrote: > > Is it preferred to convert multiple return values to extra reference > > parameters before converting to GIMPLE or should I rather expand the > > middle-end to support them properly? > > You can just use a struct type for the return value? That doesn't force > the backend to put things in memory, it can still have the return value > in multiple registers (depending on ABI). > > > Segher > --00000000000079ff0e05f9386040--