This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch causes segv
- From: Dale Johannesen <dalej at apple dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Oct 2002 15:28:03 -0700
- Subject: Re: Patch causes segv
On Thursday, October 24, 2002, at 03:15 PM, David Edelsohn wrote:
Why not just patch loop_invariant_p to check that REGNO (x) is
within the bounds of the array before using it as an index? If it
isn't
then return whatever result is reasonable.
Might work, I didn't try it. It's looking at a field named set_in_loop
and (without deep analysis) I suspect that needs to be set correctly to
get the right answer.