Commit dd25fe0a by Eric Botcazou Committed by Eric Botcazou

utils.c (gnat_write_global_declarations): Adjust the flags put on dummy_global.

	* utils.c (gnat_write_global_declarations): Adjust the flags put on
	dummy_global.

From-SVN: r210589
parent 4aecc2f8
2014-05-18 Eric Botcazou <ebotcazou@adacore.com> 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
* utils.c (gnat_write_global_declarations): Adjust the flags put on
dummy_global.
2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (change_qualified_type): New static function. * gcc-interface/decl.c (change_qualified_type): New static function.
(gnat_to_gnu_entity): Use it throughout to add qualifiers on types. (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
<E_Array_Type>: Set TYPE_VOLATILE on the array type directly. <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
......
...@@ -5756,9 +5756,10 @@ gnat_write_global_declarations (void) ...@@ -5756,9 +5756,10 @@ gnat_write_global_declarations (void)
dummy_global dummy_global
= build_decl (BUILTINS_LOCATION, VAR_DECL, get_identifier (label), = build_decl (BUILTINS_LOCATION, VAR_DECL, get_identifier (label),
void_type_node); void_type_node);
DECL_HARD_REGISTER (dummy_global) = 1;
TREE_STATIC (dummy_global) = 1; TREE_STATIC (dummy_global) = 1;
TREE_ASM_WRITTEN (dummy_global) = 1;
node = varpool_node_for_decl (dummy_global); node = varpool_node_for_decl (dummy_global);
node->definition = 1;
node->force_output = 1; node->force_output = 1;
while (!types_used_by_cur_var_decl->is_empty ()) while (!types_used_by_cur_var_decl->is_empty ())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment