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] Allow memory and string builtins overflowing from one structure field into another one (PR rtl-optimization/23561)


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~


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