From a69ced9fb37ddbdbb03ca54d3b926b3de6968d46 Mon Sep 17 00:00:00 2001 From: pinskia Date: Thu, 2 Jun 2005 22:57:43 +0000 Subject: [PATCH] 2005-06-03 Andrew Pinski * tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100520 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1cae64e..bfe77fd 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 b34d07c..0592704 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); } -- 2.7.4