This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix builtin strcpy
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jun 2003 13:54:59 -0700
- Subject: Re: [PATCH] Fix builtin strcpy
- References: <20030623130837.GX20507@sunsite.ms.mff.cuni.cz>
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~