From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6798 invoked by alias); 9 Apr 2002 16:46:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6754 invoked by uid 71); 9 Apr 2002 16:46:04 -0000 Date: Tue, 09 Apr 2002 09:46:00 -0000 Message-ID: <20020409164604.6750.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Richard Henderson Subject: Re: optimization/6233: simple loop miscompilation Reply-To: Richard Henderson X-SW-Source: 2002-04/txt/msg00539.txt.bz2 List-Id: The following reply was made to PR optimization/6233; it has been noted by GNATS. From: Richard Henderson To: gcc-gnats@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Subject: Re: optimization/6233: simple loop miscompilation Date: Tue, 9 Apr 2002 09:41:57 -0700 On Tue, Apr 09, 2002 at 08:57:35PM +0930, Alan Modra wrote: > * alias.c (nonlocal_referenced_p): Make global. > * tree.h (nonlocal_referenced_p): Declare. > * loop.c (prescan_loop): Set has_nonconst_call for pure functions. This is almost certainly wrong. It sounds more like either we've mis-categorized the function to begin with, or loop is failing to note the USE of memory in CALL_INSN_FUNCTION_USAGE. r~