mirror of git://gcc.gnu.org/git/gcc.git
decl.c (gnat_to_gnu_entity): When they are global...
* gcc-interface/decl.c (gnat_to_gnu_entity): When they are global, consider ___XR GNAT encodings variables for renamings as static so they have a location in the debug info. From-SVN: r243341
This commit is contained in:
parent
f2e04c79ac
commit
bbe9a71dff
|
|
@ -1,3 +1,9 @@
|
|||
2016-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
|
||||
|
||||
* gcc-interface/decl.c (gnat_to_gnu_entity): When they are global,
|
||||
consider ___XR GNAT encodings variables for renamings as static so
|
||||
they have a location in the debug info.
|
||||
|
||||
2016-12-07 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Translate
|
||||
|
|
|
|||
|
|
@ -672,6 +672,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue