From 4f60bf181ef50a8c3b6fd9a15682782922c49633 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 5 Oct 2012 11:48:27 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20lto/54811=20(tree=20code=20'=EF=BF=BD'?= =?utf8?q?=20is=20not=20supported=20in=20LTO=20streams)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2012-10-05 Richard Guenther PR middle-end/54811 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at DECL_DEBUG_EXPR again. From-SVN: r192120 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-live.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 93a143e..6768355 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-10-05 Richard Guenther + + PR middle-end/54811 + * tree-ssa-live.c (clear_unused_block_pointer_1): Look at + DECL_DEBUG_EXPR again. + 2012-10-05 Jan Hubicka Jakub Jelinek diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 7bf89d1..b63dc7e 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -621,6 +621,11 @@ clear_unused_block_pointer_1 (tree *tp, int *, void *) if (EXPR_P (*tp) && TREE_BLOCK (*tp) && !TREE_USED (TREE_BLOCK (*tp))) TREE_SET_BLOCK (*tp, NULL); + if (TREE_CODE (*tp) == VAR_DECL && DECL_DEBUG_EXPR_IS_FROM (*tp)) + { + tree debug_expr = DECL_DEBUG_EXPR (*tp); + walk_tree (&debug_expr, clear_unused_block_pointer_1, NULL, NULL); + } return NULL_TREE; } -- 2.7.4