diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-26 09:49:47 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-26 09:49:47 +0000 |
commit | e99f078847a24e13a99991c6cd3ccd8f4bbaeb71 (patch) | |
tree | 521151679baf6233ac731b345b6b703ba053b628 | |
parent | f1b69188357a03dd7ffe398e0723f173552aacf8 (diff) | |
download | gcc-e99f078847a24e13a99991c6cd3ccd8f4bbaeb71.zip gcc-e99f078847a24e13a99991c6cd3ccd8f4bbaeb71.tar.gz gcc-e99f078847a24e13a99991c6cd3ccd8f4bbaeb71.tar.bz2 |
re PR bootstrap/46528 (profiledbootstrap failure)
2010-11-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46528
PR debug/46338
* profile.c (branch_prob): Do not split blocks based on locations
from debug statements.
From-SVN: r167171
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/profile.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff8fc9a..44883d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-11-26 Richard Guenther <rguenther@suse.de> + + PR tree-optimization/46528 + PR debug/46338 + * profile.c (branch_prob): Do not split blocks based on locations + from debug statements. + 2010-11-26 Jakub Jelinek <jakub@redhat.com> PR middle-end/46647 diff --git a/gcc/profile.c b/gcc/profile.c index ffcd802..b8a43de 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -940,7 +940,8 @@ branch_prob (void) for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi)) { last = gsi_stmt (gsi); - if (gimple_has_location (last)) + if (!is_gimple_debug (last) + && gimple_has_location (last)) break; } |