aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-06-02 22:57:43 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-06-02 15:57:43 -0700
commitd1604bc56037a8167bef5f141103393712dd3f41 (patch)
treeb8b030a1a4a37d38012512a334e98ad20c28c994 /gcc
parentd5dc1717fa417bef354a1759d3426802220cbfba (diff)
downloadgcc-d1604bc56037a8167bef5f141103393712dd3f41.zip
gcc-d1604bc56037a8167bef5f141103393712dd3f41.tar.gz
gcc-d1604bc56037a8167bef5f141103393712dd3f41.tar.bz2
tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp.
2005-06-03 Andrew Pinski <pinskia@physics.uc.edu> * tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. From-SVN: r100520
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c2
2 files changed, 6 insertions, 1 deletions
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 <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 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);
}