This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/60472] New: Warning: array subscript is above array bounds when compiling crtstuff.c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60472

            Bug ID: 60472
           Summary: Warning: array subscript is above array bounds when
                    compiling crtstuff.c
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

Created attachment 32314
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32314&action=edit
Preprocessed source

This warning gets emitted during x86_64-linux-gnu bootstrap when compiling
crtstuff with -O2 -Wall:

/home/uros/gcc-svn/trunk/libgcc/crtstuff.c: In function âframe_dummyâ:
/home/uros/gcc-svn/trunk/libgcc/crtstuff.c:463:19: warning: array subscript is
above array bounds [-Warray-bounds]
   if (__JCR_LIST__[0])
                   ^

Preprocessed file is attached:

~/gcc-build/gcc/cc1 -O2 -Wall -quiet crtstuff.i
/home/uros/gcc-svn/trunk/libgcc/crtstuff.c: In function âframe_dummyâ:
/home/uros/gcc-svn/trunk/libgcc/crtstuff.c:463:19: warning: array subscript is
above array bounds [-Warray-bounds]
   if (__JCR_LIST__[0])
                   ^

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]