This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

combine_simplify_rtx fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]