From patchwork Sun Jul 6 19:24:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 367392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id B95231400E0 for ; Mon, 7 Jul 2014 05:24:55 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=wJ9LylyaKHfq3iPn2 oeQSaGgkjulJ79jt/rwzfEmSvH0e0Qgi+/2eYNkx3/ItsTx+Y1McZ/Eht41AU5Gn l9zXM2wtdHGRMRAHVk/LvlwTO02zjUavV9rIciW74yMT9fHRFwsa8b1s01gEvFVm BX00PJRmzqXWyrtn63TLe6J52E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=w4Xs158ElRhQcfJ+4u48McH IP1Y=; b=gvO7lhBqk9HypLYZ2ldyNp5X35cHNFyItjuHTkoAR2C/f3yxEx0Yhxa QWNuZyjQfW97q/g0Jo/mQu4weWa4HaC8ykQsHRBacs1CsqzbJZBIKw/R3Huv5rnZ AIann1pfNoxwfkwvzNnKea0wLj3NoPQDI9F7yf0VavEY1KnPvMDw= Received: (qmail 19400 invoked by alias); 6 Jul 2014 19:24:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 19379 invoked by uid 89); 6 Jul 2014 19:24:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 06 Jul 2014 19:24:43 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s66JOgYG005931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 6 Jul 2014 15:24:42 -0400 Received: from redhat.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s66JOc4Q001221 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Sun, 6 Jul 2014 15:24:40 -0400 Date: Sun, 6 Jul 2014 21:24:37 +0200 From: Marek Polacek To: Jan Hubicka Cc: Jason Merrill , gcc-patches@gcc.gnu.org Subject: Re: Strenghten assumption about dynamic type changes (placement new) Message-ID: <20140706192437.GA23559@redhat.com> References: <20140702201805.GB15987@kam.mff.cuni.cz> <53B49446.7090402@redhat.com> <20140704213952.GA28252@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140704213952.GA28252@kam.mff.cuni.cz> User-Agent: Mutt/1.5.23 (2014-03-12) On Fri, Jul 04, 2014 at 11:39:52PM +0200, Jan Hubicka wrote: > Bootstrapped/regtested x86_64-linux, will commit it after bit more > testing. ... > * g++.dg/ipa/imm-devirt-1.C: Update testcase. > * g++.dg/ipa/imm-devirt-2.C: Update testcase. These testcases fail: ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++98: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++11: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++1y: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++98: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++11: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++1y: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced I'm fixing that with the following (will commit as obvious). 2014-07-06 Marek Polacek * g++.dg/ipa/imm-devirt-1.C: Fix regexp in dg-final. * g++.dg/ipa/imm-devirt-2.C: Likewise. Marek diff --git gcc/testsuite/g++.dg/ipa/imm-devirt-1.C gcc/testsuite/g++.dg/ipa/imm-devirt-1.C index 115277f..85f1a8f 100644 --- gcc/testsuite/g++.dg/ipa/imm-devirt-1.C +++ gcc/testsuite/g++.dg/ipa/imm-devirt-1.C @@ -62,6 +62,6 @@ int main (int argc, char *argv[]) a direct call. */ /* { dg-final { scan-tree-dump "Inlining int middleman_1" "einline" } } */ /* { dg-final { scan-tree-dump "Inlining int middleman_2" "einline" } } */ -/* { dg-final { scan-tree-dump "B::foo (" "einline" } } */ +/* { dg-final { scan-tree-dump "B::foo \\(" "einline" } } */ /* { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 2 "einline" } } */ /* { dg-final { cleanup-tree-dump "einline" } } */ diff --git gcc/testsuite/g++.dg/ipa/imm-devirt-2.C gcc/testsuite/g++.dg/ipa/imm-devirt-2.C index 58af089..db85487 100644 --- gcc/testsuite/g++.dg/ipa/imm-devirt-2.C +++ gcc/testsuite/g++.dg/ipa/imm-devirt-2.C @@ -92,5 +92,5 @@ int main (int argc, char *argv[]) } /* We fold into thunk of C. Eventually we should inline the thunk. */ -/* { dg-final { scan-tree-dump "C::_ZThn24_N1C3fooEi (" "einline" } } */ +/* { dg-final { scan-tree-dump "C::_ZThn24_N1C3fooEi \\(" "einline" } } */ /* { dg-final { cleanup-tree-dump "einline" } } */