From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#13650: Emacs pretest 24.2.93 - compilation error on AIX 5.3 using gcc 4.7-2 Date: Wed, 13 Feb 2013 18:49:02 -0800 Organization: UCLA Computer Science Department Message-ID: <511C509E.80609@cs.ucla.edu> References: <511419F0.7040704@cs.ucla.edu> <51196012.8010708@cs.ucla.edu> <511A91E4.1070109@cs.ucla.edu> <511C1E08.5080309@cs.ucla.edu> <97ip5veqly.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070909080509000203060901" X-Trace: ger.gmane.org 1360810182 24058 80.91.229.3 (14 Feb 2013 02:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 02:49:42 +0000 (UTC) Cc: Gilles Pion , 13650@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 14 03:50:01 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 1U5otb-0003Vu-CC for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 03:49:59 +0100 Original-Received: from localhost ([::1]:36554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5otH-0001qO-Uh for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 21:49:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5otA-0001pS-RF for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 21:49:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5ot6-0005WU-I0 for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 21:49:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5ot6-0005WM-E4 for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 21:49:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5ote-0003ir-EU for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 21:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Feb 2013 02:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13650-submit@debbugs.gnu.org id=B13650.136081018514265 (code B ref 13650); Thu, 14 Feb 2013 02:50:02 +0000 Original-Received: (at 13650) by debbugs.gnu.org; 14 Feb 2013 02:49:45 +0000 Original-Received: from localhost ([127.0.0.1]:54866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5otN-0003i1-Dk for submit@debbugs.gnu.org; Wed, 13 Feb 2013 21:49:45 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:45352) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5otK-0003ho-0F for 13650@debbugs.gnu.org; Wed, 13 Feb 2013 21:49:43 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 98681A60002; Wed, 13 Feb 2013 18:49:06 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p8UxzQhfpyRJ; Wed, 13 Feb 2013 18:49:05 -0800 (PST) Original-Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id AABD439E8100; Wed, 13 Feb 2013 18:49:05 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: <97ip5veqly.fsf@fencepost.gnu.org> 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:71233 Archived-At: This is a multi-part message in MIME format. --------------070909080509000203060901 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/13/2013 03:33 PM, Glenn Morris wrote: > since it apparently worked in Emacs 24.2, then in emacs-24 > branch at this stage we should just do the minimum to get > it back to that working state, and save improvements for trunk. We can certainly give that a try. Looking at unexaix.c, the changes made between 24.2 and 24.2.93 are small. The first change to unexaix.c, in emacs-24 bzr 108226 , fixed a bug privately reported to me by Gilles on 2012-05-09; he already tested this so it shouldn't be the problem. The remaining changes are small: it shouldn't hurt to undo them but the real problem surely lies elsewhere. I see two main suspects. First, we got rid of DATA_START and DATA_SEG_BITS on AIX. Second, USE_LSB_TAG changed from 0 to 1 on AIX. And now that I look at the code again, I see a serious bug in Emacs 24.2.93's src/lisp.h when DATA_SEG_BITS is nonzero: it mis-defines XPNTR as if DATA_SEG_BITS were zero. This is a regression and should be fixed in emacs-24 regardless of the AIX fixes, I expect. So: Gilles, can you please try the following? First, aply the attached patch to a fresh copy of emacs-24.2.93. Then, run these shell commands: ./configure CPPFLAGS='-DDATA_START=0x20000000 -DDATA_SEG_BITS=0x20000000 -DUSE_LSB_TAG=0' make If this works, I'll have some followup questions and proposed changes; the point of the above is to try to test reverting to 24.2's approach as quickly and painlessly as possible, without reverting all the other changes we've made. --------------070909080509000203060901 Content-Type: text/plain; charset=UTF-8; name="aix.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="aix.txt" ZGlmZiAtcHJ1IGVtYWNzLTI0LjIuOTMvc3JjL2xpc3AuaCBlbWFjcy0yNC4yLjkzLUFJWC9z cmMvbGlzcC5oCi0tLSBlbWFjcy0yNC4yLjkzL3NyYy9saXNwLmgJMjAxMy0wMS0wMSAxMjoz NzoxNy4wMDAwMDAwMDAgLTA4MDAKKysrIGVtYWNzLTI0LjIuOTMtQUlYL3NyYy9saXNwLmgJ MjAxMy0wMi0xMyAxODowNToxNy42MzU0MzAyMzUgLTA4MDAKQEAgLTQ5NiwxMyArNDk2LDkg QEAgc3RhdGljIEVNQUNTX0lOVCBjb25zdCBWQUxNQVNLCiAgIChYSUwgKChFTUFDU19JTlQp ICgoRU1BQ1NfVUlOVCkgKHR5cGUpIDw8IFZBTEJJVFMpICBcCiAJKyAoKGludHB0cl90KSAo cHRyKSAmIFZBTE1BU0spKSkKIAotI2lmIERBVEFfU0VHX0JJVFMKIC8qIERBVEFfU0VHX0JJ VFMgZm9yY2VzIGV4dHJhIGJpdHMgdG8gYmUgb3InZCBpbiB3aXRoIGFueSBwb2ludGVycwog ICAgd2hpY2ggd2VyZSBzdG9yZWQgaW4gYSBMaXNwX09iamVjdC4gICovCiAjZGVmaW5lIFhQ TlRSKGEpICgodWludHB0cl90KSAoKFhMSSAoYSkgJiBWQUxNQVNLKSkgfCBEQVRBX1NFR19C SVRTKSkKLSNlbHNlCi0jZGVmaW5lIFhQTlRSKGEpICgodWludHB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JfMSAobmV3LCBtc2csIHgs IDApOyByZXR1cm4gLTEKICNkZWZpbmUgRVJST1IyKG1zZyx4LHkpIHJlcG9ydF9lcnJvcl8x IChuZXcsIG1zZywgeCwgeSk7IHJldHVybiAtMQogCisjdW5kZWYgQUREUl9DT1JSRUNUCisj ZGVmaW5lIEFERFJfQ09SUkVDVCh4KSAoKGludCkoeCkpCisKIHN0YXRpYyB2b2lkCiByZXBv cnRfZXJyb3JfMSAoaW50IGZkLCBjb25zdCBjaGFyICptc2csIGludCBhMSwgaW50IGEyKQog ewo= --------------070909080509000203060901--