This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[rtlopt] renamed variable
- From: Josef Zlomek <zlomekj at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Jan 2003 00:35:39 +0100
- Subject: [rtlopt] renamed variable
Hi,
this patch renames variable rtx to decl_rtl because its original name
caused some problems.
Compiled i386.
Josef
2003-01-27 Josef Zlomek <zlomekj@suse.cz>
* var-tracking.c (track_expr_p): Variable rtx renamed to
decl_rtl because its original name caused some problems.
Index: var-tracking.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/var-tracking.c,v
retrieving revision 1.1.4.9
diff -c -3 -p -r1.1.4.9 var-tracking.c
*** var-tracking.c 25 Jan 2003 09:35:25 -0000 1.1.4.9
--- var-tracking.c 26 Jan 2003 23:27:23 -0000
*************** static bool
*** 671,677 ****
track_expr_p (expr)
tree expr;
{
! 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)
--- 671,677 ----
track_expr_p (expr)
tree expr;
{
! rtx decl_rtl;
/* If EXPR is not a parameter or a variable do not track it. */
if (TREE_CODE (expr) != VAR_DECL && TREE_CODE (expr) != PARM_DECL)
*************** track_expr_p (expr)
*** 682,696 ****
return 0;
/* ... and a RTL assigned to it. */
! rtx = DECL_RTL (expr);
! if (!rtx)
return 0;
/* If RTX is a memory it should not be very large (because it would be an array
or struct). */
! if (GET_CODE (rtx) == MEM)
{
! if (MEM_SIZE (rtx) && INTVAL (MEM_SIZE (rtx)) > MAX_LOC_PARTS)
return 0;
}
--- 682,696 ----
return 0;
/* ... and a RTL assigned to it. */
! decl_rtl = DECL_RTL (expr);
! if (!decl_rtl)
return 0;
/* If RTX is a memory it should not be very large (because it would be an array
or struct). */
! if (GET_CODE (decl_rtl) == MEM)
{
! if (MEM_SIZE (decl_rtl) && INTVAL (MEM_SIZE (decl_rtl)) > MAX_LOC_PARTS)
return 0;
}