Zsh Mailing List Archive
Messages sorted by:
Re: crash/hang with gcc 5+ -O2 and --enable-zsh-mem
- X-seq: zsh-workers 42405
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: crash/hang with gcc 5+ -O2 and --enable-zsh-mem
- Date: Mon, 26 Feb 2018 15:13:24 -1000
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2Yxad7ZZpUNKPAncfwd2ecPKb6Od/x4cac2H9AbTMZw=; b=FI17fmTPq77Ykm87ir/cu3ev+Oi5WGTpVMKPBLfjHnLOmPoHFiMyNl6qSxZTsggnC7 GnjcflojbesCmf3JzcqgYGK1AYcG0bp8RAXj4O0vsKFtlwBn/uEKpPm2R2+ambnw28uj UVwcp+0s88im52C5ek0t6Pl2Sms3PRtYvTYPMWU3O0dCnlkgekoKPWUq1YrK/uaHFbNV xhpKugDioU7+wONL4UY4gpfa4Msgs0YM9hgXIgXTCdjLTDaa9XjwU4G+gpvmhBx+yPjg 0pck+FAsWfowSyB5wRGwE66Fm2ERWU1w80rvhr7Q6kaJ7yju6sAp0GIgGvPPoHnGCZO8 RvrQ==
- In-reply-to: <email@example.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- List-unsubscribe: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHYJk3ScwwWYGBHVXDASaWDkxamUFYQjAgEzEWD=NhcbOTVsrA@mail.gmail.com> <email@example.com> <firstname.lastname@example.org> <email@example.com>
On Mon, Feb 26, 2018 at 08:24:46PM +0000, Peter Stephenson wrote:
> Can't see a problem with this apart from a minor performance hit.
> calloc isn't used anywhere this would be a big deal, I don't think. I
> committed it, thanks.
> I suppose gcc really wants looking at too...
I honestly still am completely confused at how strlen() could in any
way be related to this (and yet, it most certainly is as far as gcc
is concered) and _why_ calloc() is even a viable candidate for malloc()
sibling-call optimization in the first place.
I am also sort of thinking this is a gcc bug, but I have no idea
where to even start looking in that abyss known to some as the
gcc codebase. I'll keep my ear to the ground regardless; I find it
*very* hard to believe that zsh is the only codebase affected
by this optimization peculiarity.
Description: PGP signature
Messages sorted by: