[PATCH][RFC] Fix PR55890

Jakub Jelinek jakub@redhat.com
Mon Jan 7 14:13:00 GMT 2013


On Mon, Jan 07, 2013 at 03:06:50PM +0100, Richard Biener wrote:
> *** gcc/tree-ssa-strlen.c	(revision 194970)
> --- gcc/tree-ssa-strlen.c	(working copy)
> *************** adjust_last_stmt (strinfo si, gimple stm
> *** 809,818 ****
>   
>     if (!is_gimple_call (last.stmt))
>       return;
> !   callee = gimple_call_fndecl (last.stmt);
> !   if (callee == NULL_TREE || DECL_BUILT_IN_CLASS (callee) != BUILT_IN_NORMAL)
>       return;
>   
>     switch (DECL_FUNCTION_CODE (callee))
>       {
>       case BUILT_IN_MEMCPY:
> --- 809,818 ----
>   
>     if (!is_gimple_call (last.stmt))
>       return;

The above call could be dropped too, gimple_call_builtin_p checks that as
well.

	Jakub



More information about the Gcc-patches mailing list