aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-07-16 17:51:56 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-07-16 17:51:56 +0000
commit6a4825bda18b76ef8b0f979ef439e0007a440b8f (patch)
treeb6c3c56877a471af09eccb6a32c2a8ca5b700d9e /gcc/tree-ssa-loop-prefetch.c
parentc5af628dbe90df6244b33bd7c6a89fbd124068b8 (diff)
downloadgcc-6a4825bda18b76ef8b0f979ef439e0007a440b8f.zip
gcc-6a4825bda18b76ef8b0f979ef439e0007a440b8f.tar.gz
gcc-6a4825bda18b76ef8b0f979ef439e0007a440b8f.tar.bz2
tree.c (build_common_builtin_nodes): Use build_function_type_list instead of build_function_type.
* tree.c (build_common_builtin_nodes): Use build_function_type_list instead of build_function_type. * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise. * cgraphunit.c (cgraph_build_static_cdtor): Likewise. From-SVN: r162264
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index a5b5112..1932d05 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -1903,10 +1903,8 @@ tree_ssa_prefetch_arrays (void)
if (!built_in_decls[BUILT_IN_PREFETCH])
{
- tree type = build_function_type (void_type_node,
- tree_cons (NULL_TREE,
- const_ptr_type_node,
- NULL_TREE));
+ tree type = build_function_type_list (void_type_node,
+ const_ptr_type_node, NULL_TREE);
tree decl = add_builtin_function ("__builtin_prefetch", type,
BUILT_IN_PREFETCH, BUILT_IN_NORMAL,
NULL, NULL_TREE);