From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28922 invoked by alias); 2 Jan 2009 11:06:02 -0000 Received: (qmail 27766 invoked by uid 48); 2 Jan 2009 11:04:42 -0000 Date: Fri, 02 Jan 2009 11:06:00 -0000 Message-ID: <20090102110442.27765.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/23169] INTENT information not used in the middle-end for optimizations In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tkoenig 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: 2009-01/txt/msg00083.txt.bz2 ------- Comment #9 from tkoenig at gcc dot gnu dot org 2009-01-02 11:04 ------- (In reply to comment #8) > There is no way to tell the middle-end about anonymous readonly memory. So, we could either - teach that to the middle-end (I couldn't, though :-) - make a duplicate variable for intent(in) variables, to transfer the test case from comment #4 into integer function foo(b,c) integer, intent(in) :: b, c integer :: b_shadow, c_shadow; integer :: d, e b_shadow = b; c_shadow = c; d = b_shadow; e = c_shadow; call bar(b,c) foo = d-b_shadow + e-c_shadow; end function foo -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23169