From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Date: Thu, 08 Feb 2024 23:42:53 +0000 Message-ID: <871q9mv7ya.fsf@localhost> References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9687"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 09 00:50:51 2024 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 1rYEAK-0002KF-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Feb 2024 00:50:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYE9y-0006XH-GM; Thu, 08 Feb 2024 18:50:28 -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 1rYE7v-00063n-Mf for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 18:48:30 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYE7v-0006s7-4f for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 18:48:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYE0s-00037N-6Q for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 18:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 23:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs Original-Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743561411888 (code B ref 68851); Thu, 08 Feb 2024 23:41:02 +0000 Original-Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 23:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYE05-00035e-Ii for submit@debbugs.gnu.org; Thu, 08 Feb 2024 18:40:14 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDzp-00034e-8k for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 18:40:11 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 86CF8240103 for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 00:39:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707435565; bh=XG4SOkqTTN2QMuOPbduYcZumCkPKChsR0jy7DxbTXxo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=nwi5SHFu+b3Ve77MQD7fALsdrRQJFFUGW/XY8T5SFIu/AlNoRh4p4u64xssAfXwIS 3V7aEl8diwExDMCS65eqJo6gZwSd993Aq71GqkyIwoiB1koE9KoeK3uquj41cUGebj aZFKZHqLgw81p2ltyJ2HTxKY9EFLXZThw+UvyI4/HRfcXp5GILwPaNdYzb6FGxtP7Q CQiD+Oapmge2OErtny4Spdg3/TuBkfnu4i7pAnTVaOUAj++oceCXOaHhjwiFiMX/fF lRDemLBjLPZFIeGYl90S3nGyhecfVkPb+IK6CZjafwVHmKcOh1RQIksRBpuDrsS+GF bLv4xJDuY884g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWD3J5tMjz6tvd; Fri, 9 Feb 2024 00:39:24 +0100 (CET) In-Reply-To: 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:279669 Archived-At: Stefan Monnier writes: >> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval >> '(batch-byte-recompile-directory 0)' > > I like to use ` to avoid that quotation gymnastics: > > emacs -Q -batch --eval '(add-to-list `load-path ".")' ... Interesting. Thanks for sharing the trick. >> Looks like it is really not native compiler related. >> Still, I am puzzled what is going wrong there. The error is >> >> Warning: Optimization failure for org-element-property-raw: Handler: >> org-element-property-raw--inliner >> (void-function org-element--property-idx) >> >> but both org-element--property-idx and org-element-property-raw are >> inline functions defined in the same file. > > `org-element--property-idx` is defined in that same file, indeed, but > contrary to `defmacro`, `define-inline` does not make the function > usable during that same file's compilation. This is surprising. I would not mind compiler indicating this fact in less cryptic way or, better, making `define-inline' usable during file's compilation. Also, I am very confused because the previous version worked: (define-inline org-element--property-idx (property) "Return standard property index or nil." (declare (pure t)) (if (inline-const-p property) (plist-get org-element--standard-properties-idxs (inline-const-val property)) (inline-quote (plist-get org-element--standard-properties-idxs ,property)))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at