summaryrefslogtreecommitdiff
path: root/gcc/c-family/cilk.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-07-14 00:12:54 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-07-13 22:12:54 +0000
commit893306188659dafdd4fe386235039b0ec4b8c4c8 (patch)
tree205f9c439effd6b0b1d8538404e92216504a3f4c /gcc/c-family/cilk.c
parent69dc8208ee905dbc2a6d04faa4cec7211874745e (diff)
downloadgcc-893306188659dafdd4fe386235039b0ec4b8c4c8.tar.gz
cgraph.h (symtab_node): Add nonzero_address.
* cgraph.h (symtab_node): Add nonzero_address. (decl_in_symtab_p): Break out from ... (symtab_get_node): ... here. * fold-const.c: Include cgraph.h (tree_single_nonzero_warnv_p): Use symtab to determine if symbol is non-zero. * symtab.c (symtab_node::nonzero_address): New method. * gcc.dg/pr36901.h: Simplify because non-zero symbol folding no longer happens during parsing. * gcc.dg/pr44024.c: Update template. * g++.dg/tree-ssa/nonzero-2.C: New testcase. * g++.dg/tree-ssa/nonzero-1.C: New testcase. * gcc.dg/tree-ssa/nonzero-1.c: New testcase. From-SVN: r212499
Diffstat (limited to 'gcc/c-family/cilk.c')
-rw-r--r--gcc/c-family/cilk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/cilk.c b/gcc/c-family/cilk.c
index 8bdcdcfaad5..e7332203978 100644
--- a/gcc/c-family/cilk.c
+++ b/gcc/c-family/cilk.c
@@ -314,6 +314,7 @@ create_cilk_helper_decl (struct wrapper_data *wd)
tree block = make_node (BLOCK);
DECL_INITIAL (fndecl) = block;
TREE_USED (block) = 1;
+ BLOCK_SUPERCONTEXT (block) = fndecl;
gcc_assert (!DECL_SAVED_TREE (fndecl));
/* Inlining would defeat the purpose of this wrapper.