From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#24065: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher Date: Mon, 25 Jul 2016 14:38:40 +0200 Message-ID: <57960850.TeswPyw0Vd9RvMtd%wjenkner@inode.at> References: <20160725072232.GA315@x4> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1469450368 24015 80.91.229.3 (25 Jul 2016 12:39:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2016 12:39:28 +0000 (UTC) Cc: 24065@debbugs.gnu.org To: markus@trippelsdorf.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 14:39:18 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 1bRfAD-0002x9-5l for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 14:39:17 +0200 Original-Received: from localhost ([::1]:60391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRfAC-0007Vl-CL for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 08:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRfA2-0007S8-Hn for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 08:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRf9y-0004J4-66 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 08:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRf9y-0004J0-2Z for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bRf9x-0005MV-Pf for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 08:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2016 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24065-submit@debbugs.gnu.org id=B24065.146945032820593 (code B ref 24065); Mon, 25 Jul 2016 12:39:01 +0000 Original-Received: (at 24065) by debbugs.gnu.org; 25 Jul 2016 12:38:48 +0000 Original-Received: from localhost ([127.0.0.1]:36366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRf9k-0005M5-7J for submit@debbugs.gnu.org; Mon, 25 Jul 2016 08:38:48 -0400 Original-Received: from vie01a-dmta-at51-1.mx.upcmail.net ([62.179.121.139]:53061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRf9g-0005Ls-Bi for 24065@debbugs.gnu.org; Mon, 25 Jul 2016 08:38:46 -0400 Original-Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50) by vie01a-dmta-at51.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1bRf9e-0003EF-UZ for 24065@debbugs.gnu.org; Mon, 25 Jul 2016 14:38:42 +0200 Original-Received: from iznogoud.viz ([91.119.140.181]) by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net id P0eg1t00x3v1JEr0B0egu8; Mon, 25 Jul 2016 14:38:42 +0200 X-SourceIP: 91.119.140.181 X-CNFS-Analysis: v=2.2 cv=FpZHxCjq c=1 sm=2 tr=0 a=1u2zU4VdvSEsKZ7IV0aFlw==:117 a=1u2zU4VdvSEsKZ7IV0aFlw==:17 a=kj9zAlcOel0A:10 a=cAmyUtKerLwA:10 a=mDV3o1hIAAAA:8 a=NEAV23lmAAAA:8 a=6_L8CYSn48RvGkj_dfgA:9 a=_FVE-zBwftR9WsbkzFJk:22 a=Bn2pgwyD2vrAyMmN8A2t:22 Original-Received: from wolfgang (uid 1002) (envelope-from wjenkner@inode.at) id 8a017 by iznogoud.viz (DragonFly Mail Agent v0.11); Mon, 25 Jul 2016 14:38:40 +0200 In-Reply-To: <20160725072232.GA315@x4> User-Agent: Heirloom mailx 12.4 7/29/08 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" Xref: news.gmane.org gmane.emacs.bugs:121512 Archived-At: Markus Trippelsdorf wrote: > commit 09ece4d341a7e07fab7be22868ebcadae8641c79 > Author: Wolfgang Jenkner > Date: Tue Feb 9 15:04:40 2016 -0800 > > Restore the calloc family. > > causes gcc-5 and higher to compile calloc to an endless loop. > -fno-builtin-malloc should be used to work around the problem. This was the reason for the (compiler-independent) work-around discussed in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22085 and committed in commit 4b1436b702d56eedd27a0777fc7232cdfb7ac4f6 Author: Wolfgang Jenkner Date: Sat Dec 26 12:12:02 2015 -0800 Always define gmalloc etc. in src/gmalloc.c The commit you cited shouldn't change that, I think. In any case, that work-around seems to work for DragonflyBSD, which has gcc 5 as base compiler, and, for the time being (i.e., emacs-25 branch), actually uses the malloc implemented in src/gmalloc, cf. https://github.com/DragonFlyBSD/DPorts/tree/master/editors/emacs-devel So, it would be useful to know on which system compilation fails.