From: Richard Guenther Date: Fri, 5 Oct 2012 11:48:27 +0000 (+0000) Subject: re PR lto/54811 (tree code '�' is not supported in LTO streams) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f60bf181ef50a8c3b6fd9a15682782922c49633;p=gcc.git re PR lto/54811 (tree code '�' is not supported in LTO streams) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 93a143e1b9c..6768355e869 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 7bf89d19fdb..b63dc7e8170 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; }