This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/4222: RVO for empty classes
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4222: RVO for empty classes
- From: nathan at codesourcery dot com
- Date: 4 Sep 2001 12:09:30 -0000
- Reply-To: nathan at codesourcery dot com
>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 <nathan@codesourcery.com>
* 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: