From mboxrd@z Thu Jan 1 00:00:00 1970 From: nathan@codesourcery.com To: gcc-gnats@gcc.gnu.org Subject: c++/4222: RVO for empty classes Date: Tue, 04 Sep 2001 05:16:00 -0000 Message-id: <20010904120930.20050.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00062.html List-Id: >Number: 4222 >Category: c++ >Synopsis: RVO for empty classes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: pessimizes-code >Submitter-Id: net >Arrival-Date: Tue Sep 04 05:16:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nathan >Release: 3.0.1, 3.1 >Organization: >Environment: >Description: the fix for bug 4203 2001-09-04 Nathan Sidwell * call.c (build_over_call): Do not optimize any empty base construction. disables the RVO for empty classes. See test case g++.old-deja/g++.other/empty1.C, which I've XFAILED we need to teach the middle end about empty objects >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: