From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10254 invoked by alias); 3 Dec 2001 16:52:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 10233 invoked from network); 3 Dec 2001 16:52:34 -0000 Received: from unknown (HELO gandalf.codesourcery.com) (66.60.148.227) by sources.redhat.com with SMTP; 3 Dec 2001 16:52:34 -0000 Received: from gandalf.codesourcery.com (IDENT:mitchell@localhost [127.0.0.1]) by gandalf.codesourcery.com (8.11.6/8.11.6) with ESMTP id fB3Gkl817458; Mon, 3 Dec 2001 08:46:47 -0800 Date: Mon, 03 Dec 2001 08:52:00 -0000 From: Mark Mitchell To: John David Anglin , Jason Merrill cc: "gcc-patches@gcc.gnu.org" Subject: Re: C++ pcc struct return fix Message-ID: <38880000.1007398006@gandalf.codesourcery.com> In-Reply-To: <200112031640.fB3Ge8YS027655@hiauly1.hia.nrc.ca> X-Mailer: Mulberry/2.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-SW-Source: 2001-12/txt/msg00172.txt.bz2 --On Monday, December 03, 2001 11:40:08 AM -0500 John David Anglin wrote: >> >>>>> "John" == John David Anglin writes: >> >> > * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in >> > call to build_aggr_init. >> >> DIRECT_BIND is for binding temporaries to reference variables; I'm not >> sure why this would have any effect on your problem. Perhaps rather >> than call build_aggr_init here, we should be doing an explicit >> constructor call as in ocp_convert. Since this patch only affects PCC platforms, and since there are so few, this patch is OK with me for 3.0.3 if Jason becomes convinced. A test case would probably help. Thanks, -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com