blob: 90c3dc268524382e9aa948d56badd974ee6790a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* PR tree-optimization/97750 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wall -Wextra" } */
char CopyPlane_src;
long CopyPlane_copy_pitch;
char *CopyFromUswc_src;
int CopyFromUswc_height;
void CopyPlane(char *dst) {
__builtin_memcpy(dst, &CopyPlane_src, CopyPlane_copy_pitch);
}
void CopyFromUswc(long src_pitch) {
char *dst;
for (; CopyFromUswc_height;) {
unsigned unaligned = (long)CopyFromUswc_src;
if (unaligned)
CopyPlane(&dst[unaligned]);
CopyFromUswc_src += src_pitch;
}
}
/* { dg-prune-output "-Wmaybe-uninitialized" } */
|