From dd25fe0a4bfad9fe6017e432ae741e549a77e0a5 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sun, 18 May 2014 21:08:14 +0000 Subject: 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 --- gcc/ada/gcc-interface/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/ada/gcc-interface') diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index cc6f874..4f39dd6 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -5756,9 +5756,10 @@ gnat_write_global_declarations (void) dummy_global = build_decl (BUILTINS_LOCATION, VAR_DECL, get_identifier (label), void_type_node); + DECL_HARD_REGISTER (dummy_global) = 1; TREE_STATIC (dummy_global) = 1; - TREE_ASM_WRITTEN (dummy_global) = 1; node = varpool_node_for_decl (dummy_global); + node->definition = 1; node->force_output = 1; while (!types_used_by_cur_var_decl->is_empty ()) -- cgit v1.1