From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4575 invoked by alias); 25 Jun 2014 07:53:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4540 invoked by uid 48); 25 Jun 2014 07:53:18 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57742] memset(malloc(n),0,n) -> calloc(n,1) Date: Wed, 25 Jun 2014 07:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01927.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57742 --- Comment #20 from Marc Glisse --- (In reply to Joost VandeVondele from comment #18) > The following now fails, so'll reopen this PR. It is at least related to > zeroing pvec twice in a row, and doesn seem to happen if I manually inline > the routine get_pseudo_param . Hum, right, I thought I had tested that, but it was in an earlier version of the patch and I forgot to add it to one of the testcases :-( void*f(){ char*p=malloc(42); memset(p,0,42); memset(p,0,42); return p; };