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]

[PATCH] protect mark_new_vars_to_rename from PHI_NODE arguments


As consistent with update_stmt().

Bootstrapped and regtested on i686-pc-linux-gnu.

Ok for mainline?

Thanks,
Richard.



2005-07-25  Richard Guenther  <rguenther@suse.de>

	* tree-dfa.c (mark_new_vars_to_rename): Protect against
	calling with a PHI_NODE argument.

Index: tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-dfa.c,v
retrieving revision 2.61
diff -u -c -3 -p -r2.61 tree-dfa.c
*** tree-dfa.c	16 Jul 2005 18:56:52 -0000	2.61
--- tree-dfa.c	25 Jul 2005 08:16:57 -0000
*************** mark_new_vars_to_rename (tree stmt)
*** 708,713 ****
--- 708,716 ----
    int v_may_defs_before, v_may_defs_after;
    int v_must_defs_before, v_must_defs_after;
  
+   if (TREE_CODE (stmt) == PHI_NODE)
+     return;
+ 
    vars_in_vops_to_rename = BITMAP_ALLOC (NULL);
  
    /* Before re-scanning the statement for operands, mark the existing


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