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])
                   ^

Reply via email to