diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d8b6a582e7be23fbfbb7bb8cb9126fc539de43ef..fedfe4396285c0b1ea41f1f00773d2ce0ebdfe53 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-05-12 Jan Hubicka <hubicka@ucw.cz> + + PR ipa/65873 + * gcc.c-torture/compile/pr65873.c: New testcase. + 2015-05-12 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/66111 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr65873.c b/gcc/testsuite/gcc.c-torture/compile/pr65873.c new file mode 100644 index 0000000000000000000000000000000000000000..854f02c5f081833c99a3528844c335677c01e799 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr65873.c @@ -0,0 +1,14 @@ +typedef __SIZE_TYPE__ size_t; + +extern inline __attribute__ ((__always_inline__, __gnu_inline__, __artificial__, __nothrow__, __leaf__)) void * +memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) +{ + return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); +} + +__attribute__((optimize ("Ofast"))) void +bar (void *d, void *s, size_t l) +{ + memcpy (d, s, l); +} +