mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
5423ab77ff
commit
4be4cd6dd7
|
|
@ -1,3 +1,9 @@
|
||||||
|
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)
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue