Crash in alias.c

Jeffrey A Law law@cygnus.com
Fri May 29 00:09:00 GMT 1998


  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



More information about the Gcc-patches mailing list