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]

[tree-ssa] Minor cleanup in get_expr_operands


A trivial cleanup.  There's no reason to treat *0 specially here.

	* tree-dfa.c (get_expr_operands): Do not special case *0;

Index: tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-dfa.c,v
retrieving revision 1.1.4.144
diff -c -3 -p -r1.1.4.144 tree-dfa.c
*** tree-dfa.c	11 Aug 2003 02:30:56 -0000	1.1.4.144
--- tree-dfa.c	15 Aug 2003 04:25:48 -0000
*************** get_expr_operands (tree stmt, tree *expr
*** 368,374 ****
  	  add_stmt_operand (&TREE_OPERAND (ptr, 0), stmt, flags, prev_vops);
  	  return;
  	}
!       else if (TREE_CONSTANT (ptr) && !integer_zerop (ptr))
  	{
  	  /* If a constant is used as a pointer, we can't generate a real
  	     operand for it but we mark the statement volatile to prevent
--- 368,374 ----
  	  add_stmt_operand (&TREE_OPERAND (ptr, 0), stmt, flags, prev_vops);
  	  return;
  	}
!       else if (TREE_CONSTANT (ptr))
  	{
  	  /* If a constant is used as a pointer, we can't generate a real
  	     operand for it but we mark the statement volatile to prevent



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