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#55355: TBD: inappropriate inlining, cmacro errors Date: Wed, 11 May 2022 16:22:23 -0400 Message-ID: References: <87h75xnghe.fsf@ya.ru> <87a6bob77f.fsf@gnus.org> 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="26664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55355@debbugs.gnu.org, Ivan Sokolov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 22:23:10 2022 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 1nosrW-0006j0-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 22:23:10 +0200 Original-Received: from localhost ([::1]:33244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nosrU-0002Gx-Mz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 16:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nosrO-0002Gd-1O for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nosrN-0001Td-Oe for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nosrN-0003E7-J6 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55355 X-GNU-PR-Package: emacs Original-Received: via spool by 55355-submit@debbugs.gnu.org id=B55355.165230055412359 (code B ref 55355); Wed, 11 May 2022 20:23:01 +0000 Original-Received: (at 55355) by debbugs.gnu.org; 11 May 2022 20:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:38626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nosqv-0003DH-Qw for submit@debbugs.gnu.org; Wed, 11 May 2022 16:22:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nosqt-0003Cx-Om for 55355@debbugs.gnu.org; Wed, 11 May 2022 16:22:32 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id ECEA380355; Wed, 11 May 2022 16:22:25 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 52556800AE; Wed, 11 May 2022 16:22:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652300544; bh=tm2P6rGgUVLJZXuAAFA8zE8L7sicxLPc+pl0LkLp99k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DISziQ2sZ826FQANegjuGWJsQEz2qxCEJGUPPlayDY2VisbAbV2X2wB56xPl8CtFY e8BTp0dnEcVF/uHZkCosRi+sebc1EqIvL3xZ59V4EGJERE1Smf/QgT8iF8a0KLm2Ew 5yDDmlZTPLs7VRH6P0z1Ya9DOEe5DvWegEpZzVrt/aMAk/PBWzImJ5bhtkMugoa9yO hEI1ZfnPANMVaJfVwZSU4Y0zkz+yPfy1VM/PMZPzIguQnfKmUACf14TrDW/uUY7OkE LxavzIl2ZoImVA/Wlk4owBFfqAkDd8h1c3JEfmbmhvjc3UEaVm6hi4fJWXd1UFr6jl /erPDDze5YoQg== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3CE5D1200D3; Wed, 11 May 2022 16:22:24 -0400 (EDT) In-Reply-To: <87a6bob77f.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 11 May 2022 14:10:44 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:231988 Archived-At: >> (cl-defstruct (foo (:constructor foo<-list ((bar _ baz)))) >> bar >> baz) [...] > Perhaps Stefan has some comments; added to the CCs. Looks like another bug in `cl-defsubst`. To the extent that I dislike this "destructuring args" in function signatures, I'd recommend "if it hurts, don't do that". You can probably work around the problem using the `:noinline` feature added recently to `cl-defstruct`. As for a fix, it's probably a small matter of making `cl-defsubst` give up on inlining when the formal arglist is "too complex". Stefan