------- Comment #1 from jamborm at gcc dot gnu dot org 2009-11-24 18:16 ------- Can you please add a check before the qsort call (tree-sra.c, line 1407) whether all pointers in the access_vec seem OK or whether it is SRA that passes the invalid pointer to qsort? Nothing fancy, something as stupid as the loop below should do:
for (i =0; i < access_count; i++) gcc_assert (((unsigned) VEC_index (access_p, access_vec, i)) > 0x1000); If it passes I can't see any other explanation but a bad qsort. If it doesn't we'll need to figure out how the bad pointers get there. I don't have access to the architecture so I can't try it myself. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42157