This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Some VRP improvements


On Thu, Jun 02, 2005 at 05:49:15PM -0400, Andrew Pinski wrote:
> ChangeLog:
> 	* tree.c (build_common_builtin_nodes): Fix the return type on
> 	__builtin_memcmp.

gcc-4_0-branch has the same bug, can it be fixed there as well?

> --- tree.c	1 Jun 2005 00:39:45 -0000	1.483
> +++ tree.c	2 Jun 2005 21:46:41 -0000
> @@ -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);
>      }

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]