This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]