aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2009-04-17 17:45:56 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2009-04-17 17:45:56 -0400
commit07485407e17b3be47ede16306a9ba449a03f0a7b (patch)
tree35617d27227f8f0332b1eb102297803c6dd769e5 /gcc/cgraphunit.c
parent4e53d196cc0400d7cd1b90804987be4f14d6e2f1 (diff)
downloadgcc-07485407e17b3be47ede16306a9ba449a03f0a7b.zip
gcc-07485407e17b3be47ede16306a9ba449a03f0a7b.tar.gz
gcc-07485407e17b3be47ede16306a9ba449a03f0a7b.tar.bz2
omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
* omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL. * cgraphunit.c (cgraph_build_static_cdtor): Likewise. * tree-dfa.c (find_referenced_vars_in): Factor out of ... (find_vars_r): ... here. * tree-flow.h (find_referenced_vars_in): Declare. * tree-ssa-pre.c (create_expression_by_pieces): Assert that AVAIL_OUT exists for BLOCK. * Makefile.in (CGRAPH_H): Add dependency on cif-code.def (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H. (tree-parloops.o): Likewise. testsuite/ChangeLog * gcc.c-torture/execute/builtins/strlen-3.c: Fix ODR violation for variable 'inside_main'. From-SVN: r146295
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 9f6a50d..859eadd 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1369,6 +1369,7 @@ cgraph_build_static_cdtor (char which, tree body, int priority)
resdecl = build_decl (RESULT_DECL, NULL_TREE, void_type_node);
DECL_ARTIFICIAL (resdecl) = 1;
DECL_RESULT (decl) = resdecl;
+ DECL_CONTEXT (resdecl) = decl;
allocate_struct_function (decl, false);