Commit 4be4cd6d by Richard Guenther Committed by Richard Biener

re PR tree-optimization/45255 (internal compiler error: verify_stmts failed with -fwhopr)

2010-08-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/45255
	* tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P
	statics and externals are also invariant.

From-SVN: r163565
parent 5423ab77
2010-08-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45255
* tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P
statics and externals are also invariant.
2010-08-25 Jakub Jelinek <jakub@redhat.com> 2010-08-25 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/44858 PR rtl-optimization/44858
......
...@@ -2474,8 +2474,7 @@ decl_address_invariant_p (const_tree op) ...@@ -2474,8 +2474,7 @@ decl_address_invariant_p (const_tree op)
return true; return true;
case VAR_DECL: case VAR_DECL:
if (((TREE_STATIC (op) || DECL_EXTERNAL (op)) if ((TREE_STATIC (op) || DECL_EXTERNAL (op))
&& !DECL_DLLIMPORT_P (op))
|| DECL_THREAD_LOCAL_P (op) || DECL_THREAD_LOCAL_P (op)
|| DECL_CONTEXT (op) == current_function_decl || DECL_CONTEXT (op) == current_function_decl
|| decl_function_context (op) == current_function_decl) || decl_function_context (op) == current_function_decl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment