1 /* PR target/69071 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g" } */
4 /* { dg-require-effective-target size20plus } */
5
6 void *bar (void *);
7
8 void
9 foo (int c)
10 {
11 unsigned char bf[65400];
12 unsigned char *p2 = bar (bf);
13 unsigned char *p3 = bar (bf);
14 for (; *p2; p2++, c++)
15 {
16 if (c)
17 {
18 short of = p2 - bf - 6;
19 unsigned ofu = of;
20 __builtin_memcpy (p3, &ofu, sizeof (ofu));
21 }
22 }
23 }