From 4be4cd6dd7c87b0180f277432874bd21d6d9780d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 26 Aug 2010 14:20:45 +0000 Subject: re PR tree-optimization/45255 (internal compiler error: verify_stmts failed with -fwhopr) 2010-08-26 Richard Guenther PR tree-optimization/45255 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics and externals are also invariant. From-SVN: r163565 --- gcc/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 4ad2f5b..a767230 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2474,8 +2474,7 @@ decl_address_invariant_p (const_tree op) return true; case VAR_DECL: - if (((TREE_STATIC (op) || DECL_EXTERNAL (op)) - && !DECL_DLLIMPORT_P (op)) + if ((TREE_STATIC (op) || DECL_EXTERNAL (op)) || DECL_THREAD_LOCAL_P (op) || DECL_CONTEXT (op) == current_function_decl || decl_function_context (op) == current_function_decl) -- cgit v1.1