From 5df3e7ea64a520c527943ab4eb72f6ed04500576 Mon Sep 17 00:00:00 2001 From: jakub Date: Wed, 29 Feb 2012 08:12:04 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184652 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/df-scan.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/df-scan.c') diff --git a/gcc/df-scan.c b/gcc/df-scan.c index deaa9f96d53..39f444f9fc5 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)) { -- cgit v1.2.1