combine_simplify_rtx fix
Jan Hubicka
jh@suse.cz
Wed May 2 08:11:00 GMT 2001
Hi
Applying distributive law may change mode of OP0 in case subregs are present.
The op0_mode then contains bogus value, as was caught by testing code in
other patch.
Honza
Wed May 2 17:10:31 CEST 2001 Jan Hubicka <jh@suse.cz>
* combine.c (combine_simplify_rtx): Set op0_mode to VOIDmode after
applying distributive law.
Index: combine.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/combine.c,v
retrieving revision 1.197
diff -c -3 -p -r1.197 combine.c
*** combine.c 2001/05/01 12:11:31 1.197
--- combine.c 2001/05/02 15:07:37
*************** combine_simplify_rtx (x, op0_mode, last,
*** 3706,3711 ****
--- 3706,3712 ----
{
x = apply_distributive_law (x);
code = GET_CODE (x);
+ op0_mode = VOIDmode;
}
/* If CODE is an associative operation not otherwise handled, see if we
More information about the Gcc-patches
mailing list