From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: inlinable functions instead of macros Date: Sat, 18 Aug 2012 23:14:20 +0200 Message-ID: <87pq6noqc3.fsf@wanadoo.es> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345324487 7874 80.91.229.3 (18 Aug 2012 21:14:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Aug 2012 21:14:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 18 23:14:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T2qLy-0005la-IF for ged-emacs-devel@m.gmane.org; Sat, 18 Aug 2012 23:14:42 +0200 Original-Received: from localhost ([::1]:39178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2qLx-00048s-8f for ged-emacs-devel@m.gmane.org; Sat, 18 Aug 2012 17:14:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2qLu-00048W-E2 for emacs-devel@gnu.org; Sat, 18 Aug 2012 17:14:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2qLt-0005eF-Gg for emacs-devel@gnu.org; Sat, 18 Aug 2012 17:14:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2qLt-0005e9-9p for emacs-devel@gnu.org; Sat, 18 Aug 2012 17:14:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T2qLp-0005a0-KF for emacs-devel@gnu.org; Sat, 18 Aug 2012 23:14:33 +0200 Original-Received: from 237.red-81-32-92.dynamicip.rima-tde.net ([81.32.92.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Aug 2012 23:14:33 +0200 Original-Received: from ofv by 237.red-81-32-92.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Aug 2012 23:14:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 237.red-81-32-92.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:CkgLcaQajDsXwyAp6YdQd4UT7fo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152648 Archived-At: Richard Stallman writes: > lisp.h:2416: Emacs fatal error: assertion failed: found == !EQ (blv->defcell, blv->valcell) > > I.e. the file&line info is always the same rather than giving the > file&line where the inlinable function was called. > > Could a GCC improvement be a good fix for this? For instance, if it > allowed the assertion failure to find and mention the source location > of the function's caller? It looks quite difficult to even give a sound specification for such feature. And I bet that the implementation, if possible at all, would be very complex and extensive. Either print a backtrace or revert to #define's.