This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42831] New: Unneccessary array temporary produced
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2010 16:18:45 -0000
- Subject: [Bug fortran/42831] New: Unneccessary array temporary produced
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Topic arose during analyzing/fixing PR 42736. For the
Table%RealData(:,1) = Table%RealData(:,1) * CENTIMETER
user-defined operation(*)/assignment an unnecessary temporary is produced. (The
"atmp" in the dump is not needed.)
An initial patch can be found at
http://gcc.gnu.org/ml/fortran/2010-01/msg00100.html (Read complete thread.)
which needs some checking for correctness.
--
Summary: Unneccessary array temporary produced
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42831