From: Andrew Pinski Date: Thu, 2 Jun 2005 22:57:43 +0000 (+0000) Subject: tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. X-Git-Tag: misc/cutover-cvs2svn~2679 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1604bc56037a8167bef5f141103393712dd3f41;p=thirdparty%2Fgcc.git tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. 2005-06-03 Andrew Pinski * tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. From-SVN: r100520 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1cae64e34425..bfe77fd6162e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-03 Andrew Pinski + + * tree.c (build_common_builtin_nodes): Fix the return type on + __builtin_memcmp. + 2005-06-03 Richard Guenther * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove. diff --git a/gcc/tree.c b/gcc/tree.c index b34d07c548f9..0592704b2720 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5866,7 +5866,7 @@ build_common_builtin_nodes (void) tmp = tree_cons (NULL_TREE, size_type_node, void_list_node); tmp = tree_cons (NULL_TREE, const_ptr_type_node, tmp); tmp = tree_cons (NULL_TREE, const_ptr_type_node, tmp); - ftype = build_function_type (ptr_type_node, tmp); + ftype = build_function_type (integer_type_node, tmp); local_define_builtin ("__builtin_memcmp", ftype, BUILT_IN_MEMCMP, "memcmp", ECF_PURE | ECF_NOTHROW); }