[3.3, mainline] Updated patch for GCC misscompilation with -march=pentium4 II

Jan Hubicka jh@suse.cz
Mon Feb 3 00:08:00 GMT 2003


> Jan Hubicka wrote:
> 
> >diff -c -3 -p -r1.165 regclass.c
> >*** regclass.c  16 Jan 2003 15:13:15 -0000      1.165
> >--- regclass.c  18 Jan 2003 15:18:07 -0000
> >*************** cannot_change_mode_set_regs (used, from,
> [snip]
> >!       for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
> >!           if (! TEST_HARD_REG_BIT (*used, i)
> >!             && REG_CANNOT_CHANGE_MODE_P (from, to, i))
> 
> The order of arguments to REG_CANNOT_CHANGE_MODE_P is invalid here;
> this causes test suite ICEs on s390.  I guess you intended:
>   REG_CANNOT_CHANGE_MODE_P (i, from, to)
Uhm, yes, of course.
I will commit obvious fix soon.

Honza
> 
> Bye,
> Ulrich
> 
> -- 
>   Dr. Ulrich Weigand
>   weigand@informatik.uni-erlangen.de



More information about the Gcc-patches mailing list