2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 22:57:43 +0000 (22:57 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 22:57:43 +0000 (22:57 +0000)
        * 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
gcc/tree.c

index 1cae64e..bfe77fd 100644 (file)
@@ -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.
index b34d07c..0592704 100644 (file)
@@ -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);
     }