| Submitter | Richard Guenther |
|---|---|
| Date | Aug. 26, 2010, 2:19 p.m. |
| Message ID | <alpine.LNX.2.00.1008261617410.28912@zhemvz.fhfr.qr> |
| Download | mbox | patch |
| Permalink | /patch/62780/ |
| State | New |
| Headers | show |
Comments
Patch
Index: gcc/tree.c =================================================================== --- gcc/tree.c (revision 163562) +++ gcc/tree.c (working copy) @@ -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)