From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7798 invoked by alias); 21 Jan 2010 16:19:12 -0000 Received: (qmail 7659 invoked by uid 48); 21 Jan 2010 16:18:45 -0000 Date: Thu, 21 Jan 2010 16:19:00 -0000 Subject: [Bug fortran/42831] New: Unneccessary array temporary produced X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg02618.txt.bz2 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