From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id BFDCE384F880 for ; Sat, 26 Nov 2022 00:16:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BFDCE384F880 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-ej1-x632.google.com with SMTP id vv4so13445732ejc.2 for ; Fri, 25 Nov 2022 16:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i+nDTy4W++H4nlI/kd2hgiEA5zaekZDohGRC/wvTeII=; b=Wqp+RcMc9Wycnacy9G8UDUGejODuKUo0Q1qFuyftzhn1jduScxUHoQYWGY0FAYfLu6 zNt3zdB0bPHcfA27PCnNkdCpwFz27GXKWZ7FhsTB2ZWXulROZ24Cv7d2cJcjojxetbiG 4Jg6blKuBVrvqcm4Ez3pLnpn75f21kH7xbhK8mySbZ9+YFG9V7SqVp8ygVK5IYCWQ3/E L4CTr2PbQiIwUQ+PBN3nreLvqJIbgeZvgwL1eAZp8UIB41WpW/dtFK7ReDIwn9Z8AlzP GpaY27SDDSZUJtJiNQXn9lCx6ptym1UB+1Zb4dlmUwFsUdLX/bR4aExTRRV6KUfrhvC/ PK2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=i+nDTy4W++H4nlI/kd2hgiEA5zaekZDohGRC/wvTeII=; b=0URkF8CEYvokpiIjLDaWmS78DUqed8tTxV2KoeZGNenQ7Teg4OFnCI3zV7PL5semqy i2XZkhTUD4d+4QU5CjpFJTEJVTZxsFtw7MMM4Ssf/qqHT0OTH09Aw7NiyxSFNpZUDh66 wXzRvFmdJ3GQRmxkSJ6PaAAVQ8vG7rvoAB8b7y2VuFezgpD/CGuCqI7zIIhquoLIOVPN 2f0Qu40ukTR5voUhIlQeLvyKw/dbjmGGs5Vw+QJLLOydHAZ8/MbjHGn17cUclonlPPlF BRIKoiCRJYSux7y8moN/V9KLhGpYnpjCPA850XR/omKyTQtoUEIZTO0Jh43Xhbu11M3m sMCQ== X-Gm-Message-State: ANoB5pmna82T0EVOP1tpNqfBz+aoE3kBPkn9rTSf/y2hZVX0pdU7AXVk 2f+cxCIt9XMg3LrdGLGFrDVhL1hVQFW5hWyKxlA= X-Google-Smtp-Source: AA0mqf66gkGLe0TrWyiqj3wLERdr7HKeZZcJXtcyUA3u+9tpuIu7coTthN9BboACKinFYruAxyXWGglhzpGfMTRiYmA= X-Received: by 2002:a17:906:2604:b0:78a:d0a4:176 with SMTP id h4-20020a170906260400b0078ad0a40176mr35416212ejc.720.1669421775219; Fri, 25 Nov 2022 16:16:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zopolis0 Date: Sat, 26 Nov 2022 11:16:03 +1100 Message-ID: Subject: Re: [PATCH 16/56] gcc: Re-add TYPE_METHODS. To: Richard Biener Cc: gcc-patches@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000e472c705ee548bfe" X-Spam-Status: No, score=-0.3 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: --000000000000e472c705ee548bfe Content-Type: text/plain; charset="UTF-8" Because the frontend uses TYPE_BINFO specifically. It expects a TYPE_BINFO that writes to this value, and will break with replacements. I have tried a number of alternatives, and this is what works. I can't use lang_1 because other frontends use it in ways that java doesn't expect and I can't create a replacement for TYPE_BINFO because then it won't have the regular checks that TYPE_BINFO has. I couldn't find a better solution because I'm not particularly versed with the internal workings of gcc, if you can think of a better idea feel free to let me know. On Sat, 26 Nov 2022 at 07:20, Richard Biener wrote: > On Fri, Nov 25, 2022 at 9:55 AM Zopolis0 via Gcc-patches > wrote: > > > > Why add this when nothing uses it and you need to re-add binfo because > of this? If the frontend uses > it then add it to lang_type. > --000000000000e472c705ee548bfe--