aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-07-25 14:01:02 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-07-25 14:01:02 +0000
commit5c97e2de43942fc14fdae03b062465e04b82e6d1 (patch)
tree8abddc3e21ff52977a1396773b8d854e87fe17ce /gcc/tree-dfa.c
parent7fefc172f162bd38fd5e8de65ea645b418cf256f (diff)
downloadgcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.zip
gcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.tar.gz
gcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.tar.bz2
tree-dfa.c (mark_new_vars_to_rename): Protect against calling with a PHI_NODE argument.
2005-07-25 Richard Guenther <rguenther@suse.de> * tree-dfa.c (mark_new_vars_to_rename): Protect against calling with a PHI_NODE argument. * tree-flow-inline.h (overlap_subvar): Protect against possible overflow. From-SVN: r102358
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index b9fecfb..beb83fb 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -708,6 +708,9 @@ mark_new_vars_to_rename (tree stmt)
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