From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11579 invoked by alias); 18 Mar 2005 00:34:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11496 invoked by alias); 18 Mar 2005 00:34:36 -0000 Date: Fri, 18 Mar 2005 00:34:00 -0000 Message-ID: <20050318003436.11494.qmail@sourceware.org> From: "jason at redhat dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050107191510.19317.mueller@kde.org> References: <20050107191510.19317.mueller@kde.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19317] [4.0/4.1 Regression] removing a temporary return value when we cannot X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg02173.txt.bz2 List-Id: ------- Additional Comments From jason at redhat dot com 2005-03-18 00:34 ------- Subject: Re: [4.0/4.1 Regression] removing a temporary return value when we cannot This hack should work around the bug, pending a better fix. *** calls.c.~1~ 2005-02-01 10:53:24.000000000 -0500 --- calls.c 2005-03-17 19:33:38.931587705 -0500 *************** expand_call (tree exp, rtx target, int i *** 1994,2001 **** --- 1994,2003 ---- structure_value_addr = expand_expr (return_arg, NULL_RTX, VOIDmode, EXPAND_NORMAL); } + #if 0 else if (target && MEM_P (target)) structure_value_addr = XEXP (target, 0); + #endif else { /* For variable-sized objects, we must be called with a target -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19317