From patchwork Thu May 22 11:57:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 1073 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 2F27E360073 for ; Thu, 22 May 2014 04:58:24 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id B6F9E63F46832; Thu, 22 May 2014 04:58:23 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 5AF0E63F46815 for ; Thu, 22 May 2014 04:58:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-type; q=dns; s=default; b=u8TyL 9BASa4zR1cYrgcIpmH8jzhCudiwbMz+MNoJ/75oKno7Ppiu1TGDTmIVnDyqgcDrs EdD8mKPZolKAcAntG/vKdt9vZPM2u7ksQa0FZZu8DJFN03u/lea7FJgsRQ5Xqs32 hXedYz0dfFmi1hujssY6Ht8PjOQyMnCznOpoDI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-type; s=default; bh=tzYHVVO/J0t 5iXZOEzZI2IWbBrU=; b=k/TDIpQUvZK+8hoPfaJSknIivV9XWe8+KUjvHnEEQDa fIZzUFyLjpYuBg3SixaufvoMpr9oYLAAnvT7eHz2X3ji4E0c7MpF7qviAivps2bL jJHNcVv4L5fxfmAu0a49NlinD0ifdfrw2/uFzuq1whSEPA+8FrOV+OvixSzH29ew = Received: (qmail 1557 invoked by alias); 22 May 2014 11:58:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 1536 invoked by uid 89); 22 May 2014 11:58:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 May 2014 11:58:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WnRdK-0003da-Jm from Thomas_Schwinge@mentor.com ; Thu, 22 May 2014 04:58:02 -0700 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 22 May 2014 04:58:02 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.2.247.3; Thu, 22 May 2014 12:58:00 +0100 From: Thomas Schwinge To: Gary Benson , Andrew Burgess CC: Ian Lance Taylor , gcc-patches , Jason Merrill , Subject: Re: [PATCH] cplus-demangler, free resource after a failed call to gnu_special. In-Reply-To: <20140514142016.GA32660@blade.nx> References: <1399646123-9960-1-git-send-email-aburgess@broadcom.com> <536E7A72.1040203@broadcom.com> <20140514090125.GA4974@blade.nx> <537337AF.3020806@broadcom.com> <20140514142016.GA32660@blade.nx> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Thu, 22 May 2014 13:57:52 +0200 Message-ID: <87a9aavxdr.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 X-DH-Original-To: gdb@patchwork.siddhesh.in Hi! On Wed, 14 May 2014 15:20:16 +0100, Gary Benson wrote: > Andrew Burgess wrote: > > On 14/05/2014 10:01 AM, Gary Benson wrote: > > > Ian Lance Taylor wrote: > > > > Andrew Burgess wrote: > > > > > On 09/05/2014 9:53 PM, Ian Lance Taylor wrote: > > > > > > Andrew Burgess wrote: > > > > > > > if ((AUTO_DEMANGLING || GNU_DEMANGLING)) > > > > > > > { > > > > > > > success = gnu_special (work, &mangled, &decl); > > > > > > > + if (!success) > > > > > > > + { > > > > > > > + delete_work_stuff (work); > > > > > > > + string_delete (&decl); > > > > > > > + } > > > > > > > > > > > > > > This patch is OK. > > > > > > Andrew, would you like me to commit this? > > > > Yes please. > > Done: > https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=210425 In GCC, I'm consistenly seeing the following new failure: ./test-demangle < ../../../source/libiberty/testsuite/demangle-expected FAIL at line 4350, options --format=auto --no-params: in: _QueueNotification_QueueController__$4PPPPPPPM_A_INotice___Z out: (null) exp: ./test-demangle: 895 tests, 1 failures make[2]: *** [check-cplus-dem] Error 1 The patch was committed incompletely; I added the missing last line in r210803: commit 8207b6a22d5955c41109399cb09f0af661a593ea Author: tschwinge AuthorDate: Thu May 22 11:56:45 2014 +0000 Commit: tschwinge CommitDate: Thu May 22 11:56:45 2014 +0000 Fix test in libiberty/testsuite/demangle-expected. libiberty/ * testsuite/demangle-expected: Fix last commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210803 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 4 ++++ libiberty/testsuite/demangle-expected | 1 + 2 files changed, 5 insertions(+) Grüße, Thomas diff --git libiberty/ChangeLog libiberty/ChangeLog index 7156be7..7b25c7e 100644 --- libiberty/ChangeLog +++ libiberty/ChangeLog @@ -1,3 +1,7 @@ +2014-05-22 Thomas Schwinge + + * testsuite/demangle-expected: Fix last commit. + 2014-05-14 Andrew Burgess * cplus-dmem.c (internal_cplus_demangle): Free any resources diff --git libiberty/testsuite/demangle-expected libiberty/testsuite/demangle-expected index 823a1c4..864ee7e 100644 --- libiberty/testsuite/demangle-expected +++ libiberty/testsuite/demangle-expected @@ -4347,3 +4347,4 @@ void post >(std::function&&)::{lambda()#1}*& std --format=auto --no-params _QueueNotification_QueueController__$4PPPPPPPM_A_INotice___Z _QueueNotification_QueueController__$4PPPPPPPM_A_INotice___Z +_QueueNotification_QueueController__$4PPPPPPPM_A_INotice___Z