]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/45255 (internal compiler error: verify_stmts failed with...
authorRichard Guenther <rguenther@suse.de>
Thu, 26 Aug 2010 14:20:45 +0000 (14:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 26 Aug 2010 14:20:45 +0000 (14:20 +0000)
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

gcc/ChangeLog
gcc/tree.c

index 0cdd6aaba95267656b3a87fc00da856f04ea7494..164bd56b48b647405f2cc771f6a12d7bafad3b32 100644 (file)
@@ -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>
 
        PR rtl-optimization/44858
index 4ad2f5b12357281e222666bbf3ff01ec71fe7ff4..a767230d1c850f692e79676bad0ad003330b5987 100644 (file)
@@ -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)