This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23372] [4.0/4.1 Regression] Temporary aggregate copy not elided when passing parameters by value
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2005 17:56:46 -0000
- Subject: [Bug c++/23372] [4.0/4.1 Regression] Temporary aggregate copy not elided when passing parameters by value
- References: <20050813080257.23372.guillaume.melquiond@ens-lyon.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-13 17:56 -------
Confirmed.
(In reply to comment #1)
> after the tree optimizers. f (*a) would not be gimple, so we create
> the temporary in the first place. TER does not remove this wart,
> neither does expand - so we start with two memcpys after RTL expansion.
TER only works on scalars so it cannot work.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |missed-optimization
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0 3.3.3 3.2.3 3.0.4
| |2.95.3
Last reconfirmed|0000-00-00 00:00:00 |2005-08-13 17:56:39
date| |
Summary|Temporary aggregate copy not|[4.0/4.1 Regression]
|elided when passing |Temporary aggregate copy not
|parameters by value |elided when passing
| |parameters by value
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23372