From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#13734: 24.3.50; ../src/lisp.h:2485:10: error: address expression must be an lvalue or a function designator Date: Sat, 2 Mar 2013 00:25:41 +0100 Message-ID: References: <4BED34C4-45B1-4D93-9602-53BC4F96EF89@Freenet.DE> <76C20AFF-2628-498E-84C3-5E63271EBC87@Freenet.DE> <2bsj4ec3aa.fsf@fencepost.gnu.org> <769B4450-BF8F-4698-B46B-BFDB0A6EAC01@Freenet.DE> <83lia6vpad.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1362180616 26318 80.91.229.3 (1 Mar 2013 23:30:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 23:30:16 +0000 (UTC) Cc: schwab@linux-m68k.org, 13734@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 02 00:30:39 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UBZPP-0008O5-1m for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2013 00:30:35 +0100 Original-Received: from localhost ([::1]:37770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBZP3-00068n-Sy for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Mar 2013 18:30:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBZOx-000667-Ch for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 18:30:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBZOu-0001xz-5u for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 18:30:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBZOu-0001wo-3U for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 18:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UBZOt-0000uh-Gj for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 18:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter Dyballa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Mar 2013 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 13734-submit@debbugs.gnu.org id=B13734.13621805533404 (code B ref 13734); Fri, 01 Mar 2013 23:30:02 +0000 Original-Received: (at 13734) by debbugs.gnu.org; 1 Mar 2013 23:29:13 +0000 Original-Received: from localhost ([127.0.0.1]:54155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBZO4-0000sq-VL for submit@debbugs.gnu.org; Fri, 01 Mar 2013 18:29:13 -0500 Original-Received: from mout3.freenet.de ([195.4.92.93]:53931) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBZO0-0000sf-3M for 13734@debbugs.gnu.org; Fri, 01 Mar 2013 18:29:09 -0500 Original-Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout3.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.80.1 #2) id 1UBZNy-0004n4-75; Sat, 02 Mar 2013 00:29:06 +0100 Original-Received: from localhost ([::1]:56914 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.80.1 #2) id 1UBZNy-0006oZ-1n; Sat, 02 Mar 2013 00:29:06 +0100 Original-Received: from [195.4.92.23] (port=33740 helo=13.mx.freenet.de) by mjail1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.80.1 #2) id 1UBZKh-0000ZV-Ia; Sat, 02 Mar 2013 00:25:43 +0100 Original-Received: from ip-95-223-148-182.unitymediagroup.de ([95.223.148.182]:53215 helo=sumac.fritz.box) by 13.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.80.1 #2) id 1UBZKh-0006LJ-An; Sat, 02 Mar 2013 00:25:43 +0100 In-Reply-To: <83lia6vpad.fsf@gnu.org> X-Mailer: Apple Mail (2.1085) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72009 Archived-At: Am 01.03.2013 um 21:27 schrieb Eli Zaretskii: > Can you post a cpp-preprocessed code of that line in lisp.h, when > configured --with-wide-int, from the compilation of a C source which > triggers the error (lwlib.c, I think)? I can't! In the middle of C pre-processing this happens: In file included from lwlib.c:24: ../src/lisp.h:3841:52: error: macro "EQ" requires 2 arguments, = but only 1 given I have the output from the configuration with 32-bit libraries, and I = can also produce the output when configured for 64-bit libraries=85 The original GCC invocation when configured --with-wide-int was: gcc-4.2 -std=3Dgnu99 -c -I/sw/include -I/usr/X11/include = -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include = -I/usr/X11R6/include `echo | sed 's/ -Wwrite-strings//'` -g3 -H = -pipe -fPIC -fno-common -Os -march=3Dcore2 -mtune=3Dcore2 -m32 = -fomit-frame-pointer -msse4.2 -Demacs -I../src -I.../emacs-24.3.50/lwlib = -I.../emacs-24.3.50/lwlib/../src -I../lib = -I.../emacs-24.3.50/lwlib/../lib lwlib.c which I changed to gcc-4.2 -std=3Dgnu99 -E -I/sw/include -I/usr/X11/include = -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include = -I/usr/X11R6/include `echo | sed 's/ -Wwrite-strings//'` -g3 -H = -pipe -fPIC -fno-common -Os -march=3Dcore2 -mtune=3Dcore2 -m32 = -fomit-frame-pointer -msse4.2 -Demacs -I../src -I.../emacs-24.3.50/lwlib = -I.../emacs-24.3.50/lwlib/../src -I../lib = -I.../emacs-24.3.50/lwlib/../lib lwlib.c -o lwlib-wide.ii being invoked on the command line. I then removed the -H flag and also = -o lwlib-wide.ii because there must be some output until the error = occurs, at least. And it did! So I finally invoked gcc-4.2 -std=3Dgnu99 -E -I/sw/include -I/usr/X11/include = -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include = -I/usr/X11R6/include `echo | sed 's/ -Wwrite-strings//'` -g3 -pipe = -fPIC -fno-common -Os -march=3Dcore2 -mtune=3Dcore2 -m32 = -fomit-frame-pointer -msse4.2 -Demacs -I../src -I.../emacs-24.3.50/lwlib = -I.../emacs-24.3.50/lwlib/../src -I../lib = -I.../emacs-24.3.50/lwlib/../lib lwlib.c > lwlib-wide.ii 'wc lwlib-wide.ii' delivers 23447 55614 560933 lwlib-wide.ii This is the pre-processed function: static __attribute__ ((__unused__)) Lisp_Object * aref_addr (Lisp_Object array, ptrdiff_t idx) { return & (((void) (0 && ((((enum Lisp_Type) ((EMACS_UINT) = ((array)) >> VALBITS)) =3D=3D Lisp_Vectorlike)))), (struct Lisp_Vector = *) ((gl_uintptr_t) (((array) & (9223372036854775807LL >> (3 - 1)))) | = DATA_SEG_BITS)))->contents[idx]; } And this is =96 presumingly =96 the function with EQ with only one = argument: static __attribute__ ((__unused__)) int functionp (Lisp_Object object) { if ((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> VALBITS)) = =3D=3D Lisp_Symbol) && !((Ffboundp (object)) =3D=3D (Qnil))) { object =3D Findirect_function (object, Qt); =09 if ((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> = VALBITS)) =3D=3D Lisp_Cons) && (((0 + (((((void) (0 && ((((enum = Lisp_Type) ((EMACS_UINT) ((object)) >> VALBITS)) =3D=3D Lisp_Cons)))), = (struct Lisp_Cons *) ((gl_uintptr_t) (((object) & (9223372036854775807LL = >> (3 - 1)))) | DATA_SEG_BITS)))->car)))) =3D=3D (Qautoload))) { =09 =09 int i; for (i =3D 0; i < 4 && (((enum Lisp_Type) ((EMACS_UINT) = ((object)) >> VALBITS)) =3D=3D Lisp_Cons); i++) object =3D (0 + (((((void) (0 && ((((enum Lisp_Type) = ((EMACS_UINT) ((object)) >> VALBITS)) =3D=3D Lisp_Cons)))), (struct = Lisp_Cons *) ((gl_uintptr_t) (((object) & (9223372036854775807LL >> (3 - = 1)))) | DATA_SEG_BITS)))->u.cdr))); =09 return ! ((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> = VALBITS)) =3D=3D Lisp_Cons) && !EQ, Qnil)); } } =09 if (((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> VALBITS)) = =3D=3D Lisp_Vectorlike) && ((((struct vectorlike_header *) = ((gl_uintptr_t) (((object) & (9223372036854775807LL >> (3 - 1)))) | = DATA_SEG_BITS)))->size & ((((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) = - 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 = + 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : 0)) : (0)) : = ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / 2) | = PVEC_TYPE_MASK)) =3D=3D ((((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - = 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + = 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : 0)) : (0)) : = ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / 2) | = ((PVEC_SUBR) << PSEUDOVECTOR_AREA_BITS))))) return (((void) (0 && (((((enum Lisp_Type) ((EMACS_UINT) = ((object)) >> VALBITS)) =3D=3D Lisp_Vectorlike) && ((((struct = vectorlike_header *) ((gl_uintptr_t) (((object) & (9223372036854775807LL = >> (3 - 1)))) | DATA_SEG_BITS)))->size & ((((1) ? ~ ((1) ? (- ((0) + 1) = << ((32) ? (32) - 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) = : 0)) - 1) * 2 + 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : = 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / = 2) | PVEC_TYPE_MASK)) =3D=3D ((((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? = (32) - 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) = * 2 + 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : 0)) : (0)) = : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / 2) | = ((PVEC_SUBR) << PSEUDOVECTOR_AREA_BITS))))))), (struct Lisp_Subr *) = ((gl_uintptr_t) (((object) & (9223372036854775807LL >> (3 - 1)))) | = DATA_SEG_BITS)))->max_args !=3D UNEVALLED; else if (((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> = VALBITS)) =3D=3D Lisp_Vectorlike) && ((((struct vectorlike_header *) = ((gl_uintptr_t) (((object) & (9223372036854775807LL >> (3 - 1)))) | = DATA_SEG_BITS)))->size & ((((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) = - 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 = + 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : 0)) : (0)) : = ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / 2) | = PVEC_TYPE_MASK)) =3D=3D ((((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - = 1 : 0)) : (0)) : ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + = 1) - ((1) ? ~ ((1) ? (- ((0) + 1) << ((32) ? (32) - 1 : 0)) : (0)) : = ((((0) + 1) << ((32) ? (32) - 1 - (1) : 0)) - 1) * 2 + 1) / 2) | = ((PVEC_COMPILED) << PSEUDOVECTOR_AREA_BITS))))) return 1; else if ((((enum Lisp_Type) ((EMACS_UINT) ((object)) >> = VALBITS)) =3D=3D Lisp_Cons)) { Lisp_Object car =3D (0 + (((((void) (0 && ((((enum = Lisp_Type) ((EMACS_UINT) ((object)) >> VALBITS)) =3D=3D Lisp_Cons)))), = (struct Lisp_Cons *) ((gl_uintptr_t) (((object) & (9223372036854775807LL = >> (3 - 1)))) | DATA_SEG_BITS)))->car))); return ((car) =3D=3D (Qlambda)) || ((car) =3D=3D = (Qclosure)); } else return 0; } I wrote "presumingly" because GNU Emacs did not perform forward-sexp on = the opening { starting the function definition. -- Greetings Pete Basic, n.: A programming language. Related to certain social diseases in = that those who have it will not admit it in polite company.