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: [PATCH] Fix builtin strcpy


On Mon, Jun 23, 2003 at 03:08:37PM +0200, Jakub Jelinek wrote:
>    len = c_strlen (src);
> -  if (len == 0)
> +  if (len == 0 || TREE_SIDE_EFFECTS (len))

Seems like c_strlen should return NULL for this, otherwise lots
of other places in builtins.c would need updating.

The test case is ok of course.


r~


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