aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-05-18 21:08:14 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-05-18 21:08:14 +0000
commitdd25fe0a4bfad9fe6017e432ae741e549a77e0a5 (patch)
treeeff9f229914416023812d8dd1e6762e4b0891568 /gcc
parent4aecc2f8e416fc1e77147f5f0084443fa4eb566e (diff)
downloadgcc-dd25fe0a4bfad9fe6017e432ae741e549a77e0a5.zip
gcc-dd25fe0a4bfad9fe6017e432ae741e549a77e0a5.tar.gz
gcc-dd25fe0a4bfad9fe6017e432ae741e549a77e0a5.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/utils.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index c29b5ad..13e4df3 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,10 @@
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.
(gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
<E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
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 ())