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
+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>
PR rtl-optimization/44858
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)