]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
utils.c (gnat_write_global_declarations): Adjust the flags put on dummy_global.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 18 May 2014 21:08:14 +0000 (21:08 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 18 May 2014 21:08:14 +0000 (21:08 +0000)
* utils.c (gnat_write_global_declarations): Adjust the flags put on
dummy_global.

From-SVN: r210589

gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c

index c29b5ad0ff7ce09f136e3acb2fc513efcc8d86a7..13e4df3c372d3daa22b1c59db13d5492119c02c2 100644 (file)
@@ -1,3 +1,8 @@
+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.
index cc6f874c5fc3eb19502ae5feeba68ebffca5488e..4f39dd6adbc5674ee42ee7c5e49fb8882130570f 100644 (file)
@@ -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 ())