------- Comment #7 from ro at CeBiTec dot Uni-Bielefeld dot DE  2010-05-19 
14:03 -------
Subject: Re:  ICE in gcc/config/soft-fp/divtf3.c

> ------- Comment #6 from zadeck at naturalbridge dot com  2010-05-19 13:41 
> -------
> I have a deadline and do not have time to play with this.  The comparison
> function in df-scan.c, df_ref_compare, is not stable according to what has 
> been
> discussed in pr42157.   however, it does satisfy the definition of qsort in 
> the
> linux manuals.    

I've no idea if the Solaris 8 (and IRIX 5) qsort violates ISO C90 here.

> if you need it to be that stable for those platforms, then change the last 
> line
> of df_ref_compare from "return 0;" to be 
>
>     return (int)DF_REF_ORDER (ref1) - (int)DF_REF_ORDER (ref2);

Thanks, that's all I needed: bootstrap is past the ICE in the stage1
libgcc now, I'll let if finish and submit the patch, attributed to you,
once testing is complete.

        Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43870

Reply via email to