From 37c59e691e40aa4f278ca985f7fa7ab81a0e545d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 25 May 2012 20:26:11 +0000 Subject: re PR lto/52178 (Ada bootstrap failure in LTO mode) PR lto/52178 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL. * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR. From-SVN: r187892 --- gcc/tree.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 1ee3f1d..de4a1c0 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -8477,8 +8477,11 @@ variably_modified_type_p (tree type, tree fn) a variable in FN. */ #define RETURN_TRUE_IF_VAR(T) \ do { tree _t = (T); \ - if (_t && _t != error_mark_node && TREE_CODE (_t) != INTEGER_CST \ - && (!fn || walk_tree (&_t, find_var_from_fn, fn, NULL))) \ + if (_t != NULL_TREE \ + && _t != error_mark_node \ + && TREE_CODE (_t) != INTEGER_CST \ + && TREE_CODE (_t) != PLACEHOLDER_EXPR \ + && (!fn || walk_tree (&_t, find_var_from_fn, fn, NULL))) \ return true; } while (0) if (type == error_mark_node) -- cgit v1.1