diff options
author | Richard Guenther <rguenther@suse.de> | 2010-08-26 14:20:45 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-08-26 14:20:45 +0000 |
commit | 4be4cd6dd7c87b0180f277432874bd21d6d9780d (patch) | |
tree | 5c8b38737ca3b177feaf123363703144f4f1b039 | |
parent | 5423ab77ff47fe699940a57225c22bded2cbe666 (diff) | |
download | gcc-4be4cd6dd7c87b0180f277432874bd21d6d9780d.zip gcc-4be4cd6dd7c87b0180f277432874bd21d6d9780d.tar.gz gcc-4be4cd6dd7c87b0180f277432874bd21d6d9780d.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cdd6aa..164bd56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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) |