Message ID | 2096055.KvMWldC59e@polaris |
---|---|
State | New |
Headers | show |
Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 243340) +++ gcc-interface/decl.c (working copy) @@ -672,6 +672,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entit VAR_DECL, gnu_entity_name, gnu_type); SET_DECL_VALUE_EXPR (gnu_decl, value); DECL_HAS_VALUE_EXPR_P (gnu_decl) = 1; + TREE_STATIC (gnu_decl) = global_bindings_p (); gnat_pushdecl (gnu_decl, gnat_entity); break; }