diff options
author | Yury Gribov <y.gribov@samsung.com> | 2014-08-11 06:06:29 +0000 |
---|---|---|
committer | Yury Gribov <ygribov@gcc.gnu.org> | 2014-08-11 06:06:29 +0000 |
commit | b78475cf7322cdce66bae717ee5768baabe8f8d6 (patch) | |
tree | cc507b413e35529d1cebf6d68425ef2f41fa5366 /gcc/tree.c | |
parent | f473c082d8c9ddbc0d310160f12fad3f11a229e0 (diff) | |
download | gcc-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |