aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-coalesce.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-06-21 14:20:42 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2007-06-21 14:20:42 +0200
commit3521f3cc39a96d9949031cb8ed464ce9ed69e34d (patch)
treeb5e88c36aad5d073f1f4122ef77cf5ec89a4b2a3 /gcc/tree-ssa-coalesce.c
parent64964499f48e337bf90d0e9d75fc44741b133194 (diff)
downloadgcc-3521f3cc39a96d9949031cb8ed464ce9ed69e34d.zip
gcc-3521f3cc39a96d9949031cb8ed464ce9ed69e34d.tar.gz
gcc-3521f3cc39a96d9949031cb8ed464ce9ed69e34d.tar.bz2
re PR tree-optimization/31866 (ICE with tree check error: expected ssa_name, have var_decl in create_outofssa_var_map)
PR tree-optimization/31866 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing if ASM_EXPR's input is not a SSA_NAME. * gcc.dg/pr31866.c: New test. From-SVN: r125919
Diffstat (limited to 'gcc/tree-ssa-coalesce.c')
-rw-r--r--gcc/tree-ssa-coalesce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c
index 04f97cf..1c82c8d 100644
--- a/gcc/tree-ssa-coalesce.c
+++ b/gcc/tree-ssa-coalesce.c
@@ -1,5 +1,5 @@
/* Coalesce SSA_NAMES together for the out-of-ssa pass.
- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
Contributed by Andrew MacLeod <amacleod@redhat.com>
This file is part of GCC.
@@ -1037,7 +1037,7 @@ create_outofssa_var_map (coalesce_list_p cl, bitmap used_in_copy)
char *end;
unsigned long match;
- if (TREE_CODE (input) != SSA_NAME && !DECL_P (input))
+ if (TREE_CODE (input) != SSA_NAME)
continue;
match = strtoul (constraint, &end, 10);