diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1cae64e3442..bfe77fd6162 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-03 Andrew Pinski <pinskia@physics.uc.edu> + + * tree.c (build_common_builtin_nodes): Fix the return type on + __builtin_memcmp. + 2005-06-03 Richard Guenther <rguenth@gcc.gnu.org> * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove. diff --git a/gcc/tree.c b/gcc/tree.c index b34d07c548f..0592704b272 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); } |