From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67005: 30.0.50; improve nadivce/comp/trampoline handling Date: Fri, 17 Nov 2023 15:44:26 -0500 Message-ID: References: <874jhv9921.fsf@sappc2.fritz.box> <875y24zrt1.fsf@sappc2.fritz.box> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jens Schmidt , 67005@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 17 21:45:12 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r45iB-0005tu-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Nov 2023 21:45:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r45i2-0002v7-8q; Fri, 17 Nov 2023 15:45:02 -0500 Original-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 1r45i1-0002ui-I7 for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:45:01 -0500 Original-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 1r45i1-0001On-AA for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:45:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r45i1-0004Wn-Lw for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Nov 2023 20:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67005 X-GNU-PR-Package: emacs Original-Received: via spool by 67005-submit@debbugs.gnu.org id=B67005.170025387817358 (code B ref 67005); Fri, 17 Nov 2023 20:45:01 +0000 Original-Received: (at 67005) by debbugs.gnu.org; 17 Nov 2023 20:44:38 +0000 Original-Received: from localhost ([127.0.0.1]:47216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45hd-0004Vu-ON for submit@debbugs.gnu.org; Fri, 17 Nov 2023 15:44:38 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45hb-0004Vc-Lc for 67005@debbugs.gnu.org; Fri, 17 Nov 2023 15:44:36 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CDFAB1000BC; Fri, 17 Nov 2023 15:44:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1700253867; bh=l9+SP6pWnNG/Qn9rn89wj/y2DJpJCve3XBOiA8L87Bc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=n/GTgqkbpt/hkAT/9d19cIFysbs3CiVanLoI6lfHpuVBmb1h4Sdo+EE2UR556zNNz Hcm7z6BE8UAVqhCX1uk4NqpijwsavRCepuaoS307S9Y+PnMByY0skyPKCvM4hPdLwZ dM7I2oyubJNITY78/SJO6c8H29+XzNm5su7gvH+IMv90m89vFqW2+0PzeuZ7ofD01M iEUHvA6WXI4jv6ZiMM/NX3d0CbyCXehqZ0VTUI6K9SXvj4YgMiVXmGdqhIAz6ItuKi L5KDF+xiNKlKRjwkWwwHETYQ4oIAlZAq+bLuNG0loY7D9IiFonuryWumq9MsKgaOwY Y4w7e4oNUcjYw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 353FD100061; Fri, 17 Nov 2023 15:44:27 -0500 (EST) Original-Received: from pastel (unknown [45.72.227.120]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 10ABA120468; Fri, 17 Nov 2023 15:44:27 -0500 (EST) In-Reply-To: (Andrea Corallo's message of "Fri, 17 Nov 2023 15:37:17 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274516 Archived-At: >> Shouldn't we implement that optimization for calls to >> native-compiled functions, tho? At least for the case where that >> function is defined in the same file as the call? > > We could, we'd need a "link table" for each file. Hmm... that's right. > Note that this would make the backtrace even more sparse :) You mean that it would push up the urgency to fix that bug? Maybe fixing that bug could be used to simplify the trampolines (because the symbol holding the function that we're calling would then be available, so the trampoline could use it, making it possible to use a fixed set of trampolines (one per calling convention) rather than one per function). Stefan