Subject: bug#24065: closed (Re: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 26 Jul 2016 07:09:01 +0000

Your bug report

#24065: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24065: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24065
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher
From: Paul Eggert <[email-masked]>
To: Wolfgang Jenkner <[email-masked]>, [email-masked]
Cc: [email-masked]
Date: Tue, 26 Jul 2016 09:08:22 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On 07/25/2016 05:48 PM, Wolfgang Jenkner wrote:
> IIUC, this commit removes  the declaration of __malloc_initialize_hook,
> so the emacs configure check for "whether malloc is Doug Lea style"
> will fail.

This problem should be fixed on Emacs master and emacs-25, as well as in 
the current release candidate for Emacs 25 
<ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.1-rc1.tar.xz>. If you're 
still observing the problem in any of these editions of Emacs, please 
let us know. In the meantime I will close the bug report as I think this 
bug is fixed now.

Subject: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher
From: Markus Trippelsdorf <[email-masked]>
To: [email-masked]
Cc: Wolfgang Jenkner <[email-masked]>
Date: Mon, 25 Jul 2016 09:22:32 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

commit 09ece4d341a7e07fab7be22868ebcadae8641c79
Author: Wolfgang Jenkner <[email-masked]>
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.

See: https://gcc.gnu.org/ml/gcc-help/2015-03/msg00109.html
for a similar example.

-- 
Markus