From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#22522: Commit b88e9cded7ae3756e3a2ec4a23e8df352a0239f9 breaks emacs dumping for me Date: Wed, 3 Feb 2016 08:35:33 -0500 Message-ID: <56B20225.8040104@cornell.edu> References: <87mvrkft66.fsf@whirm.eu> <86io28qd6g.fsf@gmail.com> <56B01BA1.1030602@cornell.edu> <85powfyywo.fsf@iznogoud.viz> <56B110B6.3090703@cornell.edu> <56B128D9.3080706@cornell.edu> <56B13388.9060904@cs.ucla.edu> <56B14544.9010609@cornell.edu> <56B1BD2E.8050606@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454506600 14849 80.91.229.3 (3 Feb 2016 13:36:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2016 13:36:40 +0000 (UTC) Cc: Andy Moreton , 22522@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 03 14:36:30 2016 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 1aQxbg-0006ap-Ja for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Feb 2016 14:36:28 +0100 Original-Received: from localhost ([::1]:34945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxbf-0002XY-UC for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Feb 2016 08:36:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxbL-00024k-0m for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 08:36:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQxbG-0002Zf-OK for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 08:36:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxbG-0002Zb-LO for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 08:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQxbG-0007xf-CR for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 08:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Feb 2016 13:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22522-submit@debbugs.gnu.org id=B22522.145450654730579 (code B ref 22522); Wed, 03 Feb 2016 13:36:02 +0000 Original-Received: (at 22522) by debbugs.gnu.org; 3 Feb 2016 13:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:57533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQxb0-0007x9-NV for submit@debbugs.gnu.org; Wed, 03 Feb 2016 08:35:46 -0500 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:48275) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQxaz-0007wu-2Z for 22522@debbugs.gnu.org; Wed, 03 Feb 2016 08:35:45 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u13DZbUU010013; Wed, 3 Feb 2016 08:35:37 -0500 Original-Received: from [10.13.22.4] (50-192-26-105-static.hfc.comcastbusiness.net [50.192.26.105]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u13DZZuf022225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 3 Feb 2016 08:35:36 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56B1BD2E.8050606@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:112336 Archived-At: On 2/3/2016 3:41 AM, Paul Eggert wrote: > Ken Brown wrote: >>> I installed the attached patch into the Emacs master, to try to work >>> around this problem by putting GCC into C11 mode. Please give it a try. >> >> No, that didn't fix it. > > Can you investigate why not? The patch should cause 'configure' to put > -stdc=gnu11 into CFLAGS. If you look at config.log, it should have > something like this: > > configure:5924: checking for gcc option to enable C11 features > ... > configure:6146: result: -std=gnu11 > > If this isn't the result, what is the result and why? Yes, that's the result. Compiling with that option caused __STDC_VERSION__ to be defined as 201112L. But it didn't affect __ISO_C_VISIBLE, which is what guards the declaration of aligned_alloc. > I'd rather not go that route, as __ISO_C_VISIBLE is supposed to be private. I installed the attached patch instead; please give it a try. We're almost there. After your change, I get the following in config.h: /* Define to 1 if you have the declaration of `aligned_alloc', and to 0 if you don't. */ #define HAVE_DECL_ALIGNED_ALLOC 0 So we need the following additional change: diff --git a/src/lisp.h b/src/lisp.h index a99002b..c8363be 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3775,7 +3775,7 @@ INLINE void (check_cons_list) (void) { lisp_h_check_cons_list (); } #if !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC && !defined SYSTEM_MALLOC extern size_t __malloc_extra_blocks; #endif -#ifndef HAVE_DECL_ALIGNED_ALLOC +#if !HAVE_DECL_ALIGNED_ALLOC extern void *aligned_alloc (size_t, size_t) ATTRIBUTE_MALLOC_SIZE ((2)); #endif extern void malloc_enable_thread (void); Thanks. Ken