This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Allow memory and string builtins overflowing from one structure field into another one (PR rtl-optimization/23561)
- 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: Fri, 26 Aug 2005 13:46:17 -0700
- Subject: Re: [PATCH] Allow memory and string builtins overflowing from one structure field into another one (PR rtl-optimization/23561)
- References: <20050826164318.GX7403@devserv.devel.redhat.com>
On Fri, Aug 26, 2005 at 12:43:18PM -0400, Jakub Jelinek wrote:
> PR rtl-optimization/23561
> * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
> a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
> at most LEN bytes long memory fits into the field.
> (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
> expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
> expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
>
> * gcc.c-torture/execute/20050826-1.c: New test.
Ok.
r~