From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta035.useast.a.cloudfilter.net (omta035.useast.a.cloudfilter.net [44.202.169.34]) by sourceware.org (Postfix) with ESMTPS id 2C8483858C1F for ; Sat, 19 Aug 2023 17:49:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C8483858C1F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from eig-obgw-6009a.ext.cloudfilter.net ([10.0.30.184]) by cmsmtp with ESMTP id XHr9qQBE2DKaKXQ4VquTx6; Sat, 19 Aug 2023 17:49:11 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id XQ4UqzHkfY1LGXQ4VqG74U; Sat, 19 Aug 2023 17:49:11 +0000 X-Authority-Analysis: v=2.4 cv=FYgkeby6 c=1 sm=1 tr=0 ts=64e10097 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=UttIx32zK-AA:10 a=Qbun_eYptAEA:10 a=Tj3CGwIw0vTuSdXylQUA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WUiYHligqX1gvF4F1CtpnmZsnrBcWRvYHDNTtLiM3es=; b=kMXoHYt+sicvb+xaNj/kOGOokr oS4xnixs/f7r7XoPqk1OdL7Rmuc/J+CE8uMkVPdoSb2YVOcf/mQw60HjaUqUGjsv4NLndlUINQQRr rFJXLHaajrVCboMvcGc1/kmmf; Received: from 75-166-142-177.hlrn.qwest.net ([75.166.142.177]:36658 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qXQ4U-003yFg-1y for cgen@sourceware.org; Sat, 19 Aug 2023 11:49:10 -0600 From: Tom Tromey To: cgen@sourceware.org Subject: [RFC 00/14] Port to Guile 3.0 Date: Sat, 19 Aug 2023 11:41:59 -0600 Message-ID: <20230819174900.866436-1-tom@tromey.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.142.177 X-Source-L: No X-Exim-ID: 1qXQ4U-003yFg-1y X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-142-177.hlrn.qwest.net (localhost.localdomain) [75.166.142.177]:36658 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJTOmjhzP2yr+EI3VTxUkct2thQZfRINo6SprtZW+4CFsVE2v635mrsR5bqji0caUFdAP28Gc/8o4tH3/YIl1Kt45Arsula9wHZTZ66yvRc3MK+sXhiW GrmbLM0KmaWs9vWsvlRLkp7xXp/WHG5bjmEeux6KoQVnh7JZdY6OlzpM/hrqv59dECJWGk7Qp8/NjQ== X-Spam-Status: No, score=-3018.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I tried re-running cgen this week and was surprised to find it didn't work with any version of Guile that I had available. Apparently it works with the long-since-obsolete Guile 1.8, and nothing newer. This series is my attempt at a port, with random other cleanups mixed in. Note that Guile 2.x also doesn't really seem to work -- it was very slow and never completed. I got impatient, so I'm not sure if it would have eventually, or if there is some bug. I didn't try Guile 1.8 but I would assume it no longer works after this series. The Guile compiler cannot be used due to the loading approach taken in cgen. This can be fixed but it is a somewhat larger effort, either involving real modules or the use of the slib require/provide system. Another possible change would be removing cos.scm in favor of Guile's built-in object system. Patch #10 is basically a hack to work around a problem with the custom object system. It can probably be fixed in a better way, but I didn't bother. I rebuilt all the cgen code in binutils-gdb with this patch after Alan's recent regeneration, and verified there are no changes. Tom