This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mips n64 eh failures
On Tue, Apr 23, 2002 at 04:27:07PM -0700, Mark Mitchell wrote:
> I remember thinking that there was a miscompilation of one of the
> fde-sorting routines, but I don't remember much more than that.
Good catch. Adding
for (i = 0; i < linear->count; ++i)
printf("\t%p %d\n", linear->array[i], i+1 < linear->count ?
fde_compare (ob, linear->array[i], linear->array[i+1]) : 0);
i.e. compare each entry to the one following. We should thus
get a sorted sequence with all comparisons == -1. But instead,
10025df0 -1
10025e50 1
10025e80 1
10025eb0 -1
10025ee0 -1
10025f10 -1
10025f40 -1
10025f70 -1
10025fa0 -1
10025fd0 1
10026000 1
10026030 -1
The numbers are in fact sorted, but the comparisons are wrong.
r~