]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp.
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 2 Jun 2005 22:57:43 +0000 (22:57 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 2 Jun 2005 22:57:43 +0000 (15:57 -0700)
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

gcc/ChangeLog
gcc/tree.c

index 1cae64e34425051e6bb5e4f84176b3a7f55bacb1..bfe77fd6162ece3f36ea2754341d1253b9ff85b5 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 b34d07c548f9256282e2d2f7fc2d8b60c1aef133..0592704b27201cb428dd38416cf781f010c91a8c 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);
     }