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]
Other format: [Raw text]

[rtlopt] fix stupid bug in var-tracking


Hi,

EXPR should be tracked when it is a PARM_DEL or VAR_DECL,
(thus is should not be tracked if it
is not PARM_DECL and is not VAR_DECL).

Josef

2003-01-22  Josef Zlomek  <zlomekj@suse.cz>

	* var-tracking.c (track_expr_p): VAR_DECL or PARM_DECL should be
	tracked.
	
Index: var-tracking.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/var-tracking.c,v
retrieving revision 1.1.4.5
diff -c -3 -p -r1.1.4.5 var-tracking.c
*** var-tracking.c	21 Jan 2003 19:54:02 -0000	1.1.4.5
--- var-tracking.c	22 Jan 2003 21:15:10 -0000
*************** track_expr_p (expr)
*** 688,694 ****
    rtx rtx;
  
    /* If EXPR is not a parameter or a variable do not track it.  */
!   if (TREE_CODE (expr) != VAR_DECL || TREE_CODE (expr) != PARM_DECL)
      return 0;
   
    /* It also must have a name...  */
--- 688,694 ----
    rtx rtx;
  
    /* If EXPR is not a parameter or a variable do not track it.  */
!   if (TREE_CODE (expr) != VAR_DECL && TREE_CODE (expr) != PARM_DECL)
      return 0;
   
    /* It also must have a name...  */


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