This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Crash in alias.c
- To: Bernd Schmidt <crux at Pool dot Informatik dot RWTH-Aachen dot DE>
- Subject: Re: Crash in alias.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 29 May 1998 01:05:56 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <Pine.SOL.3.90.980528113008.28555I@matlock.informatik.rwth-aachen.de>you write:
> While playing with the loop patch (see my previous email), I got a
> segmentation fault in find_base_value. This function uses REGNO(src) to
> index into new_reg_base_value without checking that this regno is within
> the range of the array. Since I couldn't convince myself that this shouldn' > t
> be able to happen, I added the following test.
This most likely indicates a bug elsewhere in the compiler. We need
to find out where/when that register got allocated, then decide what
the right fix is.
Probably the most important tidbit is to find out what pass added
the register in question and what pass calls into the alias analysis
code next.
Note that you can use --enable-checking to try and catch out of
range accesses to the register table.
jeff