PR rtl-optimization/23561
commitd8ae1baae3e99dfbcbe2e7da2361de13a86d0395
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Aug 2005 22:02:44 +0000 (26 22:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Aug 2005 22:02:44 +0000 (26 22:02 +0000)
tree98ccbe9ec79be85a6d0adc7e6a8ae4dd1aafc086
parent724912572b37ccd8531ff7dfeb33d19ed7742b4a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103541 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20050826-1.c [new file with mode: 0644]