diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-12-15 12:05:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-12-15 12:05:37 +0100 |
commit | 0c1e1df880daa8c6093fcc907687303877f3bfe6 (patch) | |
tree | 6fbd9a6aa48415447b30bec3514caed5364d5d37 /gcc/tree-ssa-coalesce.c | |
parent | b3908fcc0def5f1d0318bd826d889e557ed4dee0 (diff) | |
download | gcc-0c1e1df880daa8c6093fcc907687303877f3bfe6.zip gcc-0c1e1df880daa8c6093fcc907687303877f3bfe6.tar.gz gcc-0c1e1df880daa8c6093fcc907687303877f3bfe6.tar.bz2 |
re PR debug/51517 (Wrong debug information for pointers with negative strides.)
PR debug/51517
* trans-decl.c (gfc_get_symbol_decl): Don't set DECL_INITAL on span.
(gfc_trans_deferred_vars): Instead add its runtime initialization
here.
* tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
!DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
From-SVN: r182362
Diffstat (limited to 'gcc/tree-ssa-coalesce.c')
-rw-r--r-- | gcc/tree-ssa-coalesce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c index 2dfe37e..776e9e0 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, 2007, 2008, 2009, 2010 + Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Andrew MacLeod <amacleod@redhat.com> @@ -1372,7 +1372,7 @@ coalesce_ssa_name (void) if (a && SSA_NAME_VAR (a) - && !DECL_ARTIFICIAL (SSA_NAME_VAR (a)) + && !DECL_IGNORED_P (SSA_NAME_VAR (a)) && (!has_zero_uses (a) || !SSA_NAME_IS_DEFAULT_DEF (a))) { tree *slot = (tree *) htab_find_slot (ssa_name_hash, a, INSERT); |