[Bug middle-end/60472] Warning: array subscript is above array bounds when compiling crtstuff.c
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 9 12:10:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60472
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Reduced testcase:
--cut here--
static void *__JCR_LIST__[] __attribute__ ((used)) = { };
void frame_dummy (void)
{
if (__JCR_LIST__[0])
asm ("");
}
--cut here--
~/gcc-build/gcc/cc1 -O2 -Wall -quiet t.c
t.c: In function ‘frame_dummy’:
t.c:5:19: warning: array subscript is above array bounds [-Warray-bounds]
if (__JCR_LIST__[0])
^
More information about the Gcc-bugs
mailing list