aboutsummaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-02-29 09:12:04 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-02-29 09:12:04 +0100
commitbf743fc408e59aab4262b49f03b739930fadbb89 (patch)
treed401519d7b115ce0c81a59d26d0eb967ca5b2a31 /gcc/df-scan.c
parent5cda350e60df32b728d1cf4a346a980d5870193c (diff)
downloadgcc-bf743fc408e59aab4262b49f03b739930fadbb89.zip
gcc-bf743fc408e59aab4262b49f03b739930fadbb89.tar.gz
gcc-bf743fc408e59aab4262b49f03b739930fadbb89.tar.bz2
re PR bootstrap/52397 (comparison failure with Ada enabled)
PR bootstrap/52397 * df.h (struct df_d): Adjust comment that hard_regs_live_count doesn't count DEBUG_INSN refs. * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE for DEBUG_INSN refs. From-SVN: r184652
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index deaa9f9..39f444f 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -1,6 +1,6 @@
/* Scanning of rtl for dataflow analysis.
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
Originally contributed by Michael P. Hayes
(m.hayes@elec.canterbury.ac.nz, mhayes@redhat.com)
Major rewrite contributed by Danny Berlin (dberlin@dberlin.org)
@@ -2794,8 +2794,9 @@ df_ref_create_structure (enum df_ref_class cl,
DF_REF_FLAGS_CLEAR (this_ref, DF_HARD_REG_LIVE);
/* See if this ref needs to have DF_HARD_REG_LIVE bit set. */
- if ((regno < FIRST_PSEUDO_REGISTER)
- && (!DF_REF_IS_ARTIFICIAL (this_ref)))
+ if (regno < FIRST_PSEUDO_REGISTER
+ && !DF_REF_IS_ARTIFICIAL (this_ref)
+ && !DEBUG_INSN_P (DF_REF_INSN (this_ref)))
{
if (DF_REF_REG_DEF_P (this_ref))
{