diff options
author | Martin Liska <mliska@suse.cz> | 2014-07-24 18:14:39 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2014-07-24 16:14:39 +0000 |
commit | 037e55737efb95c6068fbcc740fc8f16a0cf7939 (patch) | |
tree | c3dd403cde96689e2a1ae6c9349ab51b768c7b42 /gcc/ada/gcc-interface/utils.c | |
parent | d4cf94779ff35d46313e9ff5faad76e320ab1281 (diff) | |
download | gcc-037e55737efb95c6068fbcc740fc8f16a0cf7939.zip gcc-037e55737efb95c6068fbcc740fc8f16a0cf7939.tar.gz gcc-037e55737efb95c6068fbcc740fc8f16a0cf7939.tar.bz2 |
ADA fixed for symtab_node issues.
* gcc-interface/trans.c (finalize_nrv): Correct cgraph_node (symtab_node)
function used.
* gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
(gnat_write_global_declarations): Likewise.
From-SVN: r213007
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 022bca7..2c15c98 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -2802,7 +2802,7 @@ rest_of_subprog_body_compilation (tree subprog_decl) else /* Register this function with cgraph just far enough to get it added to our parent's nested function list. */ - (void) cgraph_get_create_node (subprog_decl); + (void) cgraph_node::get_create (subprog_decl); } tree @@ -5757,7 +5757,7 @@ gnat_write_global_declarations (void) void_type_node); DECL_HARD_REGISTER (dummy_global) = 1; TREE_STATIC (dummy_global) = 1; - node = varpool_node_for_decl (dummy_global); + node = varpool_node::get_create (dummy_global); node->definition = 1; node->force_output = 1; |