Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/out-of-bounds-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR rtl-optimization/33822 */ |
2 /* Origin: Andrew Pinski <pinskia@gcc.gnu.org> */ | |
3 | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "-O -g" } */ | |
6 /* { dg-options "-O -g -mstrict-align" { target { powerpc*-*-linux* powerpc*-*-elf* } } } */ | |
7 | |
8 void ProjectOverlay(const float localTextureAxis[2], char *lump) | |
9 { | |
10 const void *d = &localTextureAxis; | |
11 int size = sizeof(float)*8 ; | |
12 __builtin_memcpy( &lump[ 0 ], d, size ); /* { dg-warning "reading" } */ | |
13 } |