This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
combine_simplify_rtx fix
- To: rth at cygnus dot com, gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- Subject: combine_simplify_rtx fix
- From: Jan Hubicka <jh at suse dot cz>
- Date: Wed, 2 May 2001 17:11:28 +0200
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