summaryrefslogtreecommitdiffstats
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-18 21:08:28 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-18 21:08:28 +0000
commit88fe9b2070cf2ca3ada892823193bac8f0a6072e (patch)
treef86c85355f0088f7b723b372988aa959e4aabfdc /gcc/ada/gcc-interface/utils.c
parent909e8fdddc701197267f806fd6ee326f0aa599c0 (diff)
downloadppe42-gcc-88fe9b2070cf2ca3ada892823193bac8f0a6072e.tar.gz
ppe42-gcc-88fe9b2070cf2ca3ada892823193bac8f0a6072e.zip
* utils.c (gnat_write_global_declarations): Adjust the flags put on
dummy_global. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210590 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 014fe361b76..15b72366bf5 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -5662,9 +5662,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 ())
OpenPOWER on IntegriCloud