This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6233: simple loop miscompilation
- From: Richard Henderson <rth at redhat dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 9 Apr 2002 16:46:04 -0000
- Subject: Re: optimization/6233: simple loop miscompilation
- Reply-to: Richard Henderson <rth at redhat dot com>
The following reply was made to PR optimization/6233; it has been noted by GNATS.
From: Richard Henderson <rth@redhat.com>
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~