aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2014-08-11 06:06:29 +0000
committerYury Gribov <ygribov@gcc.gnu.org>2014-08-11 06:06:29 +0000
commitb78475cf7322cdce66bae717ee5768baabe8f8d6 (patch)
treecc507b413e35529d1cebf6d68425ef2f41fa5366 /gcc/tree.c
parentf473c082d8c9ddbc0d310160f12fad3f11a229e0 (diff)
downloadgcc-b78475cf7322cdce66bae717ee5768baabe8f8d6.zip
gcc-b78475cf7322cdce66bae717ee5768baabe8f8d6.tar.gz
gcc-b78475cf7322cdce66bae717ee5768baabe8f8d6.tar.bz2
Added fnspec to internal functions.
2014-08-11 Yury Gribov <y.gribov@samsung.com> gcc/ * gimple.c (gimple_call_fnspec): Support internal functions. (gimple_call_return_flags): Use const. * Makefile.in (GTFILES): Add internal-fn.h to list of GC files. * internal-fn.def: Add fnspec information. * internal-fn.h (internal_fn_fnspec): New function. (init_internal_fns): Declare new function. * internal-fn.c (internal_fn_fnspec_array): New global variable. (init_internal_fns): New function. * tree-core.h: Update macro call. * tree.c (build_common_builtin_nodes): Initialize internal fns. From-SVN: r213806
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 49cb5c0..65ce642 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -9869,8 +9869,9 @@ local_define_builtin (const char *name, tree type, enum built_in_function code,
}
/* Call this function after instantiating all builtins that the language
- front end cares about. This will build the rest of the builtins that
- are relied upon by the tree optimizers and the middle-end. */
+ front end cares about. This will build the rest of the builtins
+ and internal function that are relied upon by the tree optimizers and
+ the middle-end. */
void
build_common_builtin_nodes (void)
@@ -10103,6 +10104,8 @@ build_common_builtin_nodes (void)
ECF_CONST | ECF_NOTHROW | ECF_LEAF);
}
}
+
+ init_internal_fns ();
}
/* HACK. GROSS. This is absolutely disgusting. I wish there was a