From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2088 invoked by alias); 8 Oct 2007 20:41:11 -0000 Received: (qmail 2078 invoked by uid 22791); 8 Oct 2007 20:41:10 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Oct 2007 20:41:05 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l98Kf35j032414; Mon, 8 Oct 2007 16:41:03 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l98Kf3L5023136; Mon, 8 Oct 2007 16:41:03 -0400 Received: from free.oliva.athome.lsd.ic.unicamp.br (vpn-14-115.rdu.redhat.com [10.11.14.115]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l98Kf1Mg008733; Mon, 8 Oct 2007 16:41:02 -0400 Received: from free.oliva.athome.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.oliva.athome.lsd.ic.unicamp.br (8.14.1/8.13.8) with ESMTP id l98Keqhs005466; Mon, 8 Oct 2007 17:40:52 -0300 Received: (from aoliva@localhost) by free.oliva.athome.lsd.ic.unicamp.br (8.14.1/8.13.5/Submit) id l98Kep7s005465; Mon, 8 Oct 2007 17:40:51 -0300 To: "Richard Guenther" Cc: gcc-patches@gcc.gnu.org Subject: Re: [vtab (and trunk?)] fix fallout from SSA-coalescing user variables References: <84fc9c000710020219w4128a866xe8f36fe7fd464bb0@mail.gmail.com> <84fc9c000710031122r70c6395crf8cb6ed4d0a01442@mail.gmail.com> From: Alexandre Oliva Errors-To: aoliva@oliva.athome.lsd.ic.unicamp.br Date: Mon, 08 Oct 2007 20:41:00 -0000 In-Reply-To: (Alexandre Oliva's message of "Sat\, 06 Oct 2007 08\:45\:00 -0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00443.txt.bz2 --=-=-= Content-length: 542 On Oct 6, 2007, Alexandre Oliva wrote: > On Oct 3, 2007, "Richard Guenther" wrote: >> This is ok if you move the testcase from g++.dg/tree-ssa to g++.dg/torture >> (and remove the dg-options then). > Thanks, here's what I've just installed in the trunk. Somehow the reduced testcase failed because of the undefined function on some platforms, even though it didn't fail on x86_64-linux-gnu. Here's a patch that replaces it with the original testcase in the bug report. Ok to install? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gcc-pr33572-fallout-test.patch Content-length: 1306 for gcc/testsuite/ChangeLog from Alexandre Oliva PR tree-optimization/33572 * g++.dg/torture/pr33572.C: Replace with complete test. Index: gcc/testsuite/g++.dg/torture/pr33572.C =================================================================== --- gcc/testsuite/g++.dg/torture/pr33572.C.orig 2007-10-08 17:33:33.000000000 -0300 +++ gcc/testsuite/g++.dg/torture/pr33572.C 2007-10-08 17:34:17.000000000 -0300 @@ -1,36 +1,16 @@ // { dg-do run } -namespace __gnu_cxx { - template struct __pool { - void _M_reclaim_block(char* p, unsigned long bytes); - }; -} - -struct vector { - ~vector() { deallocate(0); } - void deallocate(int* p) { - if (p) { - static __gnu_cxx::__pool pool; - pool._M_reclaim_block((char*)0, 0); - } - } -}; - -struct Foo { virtual void f() { } }; +#include +#include -struct auto_ptr { - Foo* ptr; - auto_ptr() : ptr(0) { } - ~auto_ptr() { delete ptr; } - Foo* release() { Foo* tmp = ptr; ptr = 0; return tmp; } - void reset(Foo* p) { ptr = p; } -}; +struct Foo { virtual void f() {} }; -int main(int argc, char**) { - auto_ptr foo; +int main(int argc, char**) +{ + std::auto_ptr foo; if (argc) { foo.reset(new Foo()); } else { - vector v; + std::vector v; } Foo* p = foo.release(); p->f(); --=-=-= Content-length: 249 -- Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ FSF Latin America Board Member http://www.fsfla.org/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org} --=-=-=--