https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109233
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 54719 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54719&action=edit Preprocessed file -O2 -Warray-bounds: In function ‘tg3_init_one’, inlined from ‘tg3_init_one’ at drivers/net/ethernet/broadcom/tg3.c:17542:12: drivers/net/ethernet/broadcom/tg3.c:17787:37: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds=] In file included from drivers/net/ethernet/broadcom/tg3.c:72: drivers/net/ethernet/broadcom/tg3.h: In function ‘tg3_init_one’: drivers/net/ethernet/broadcom/tg3.h:3203:18: note: while referencing ‘napi’ In function ‘tg3_init_one’, inlined from ‘tg3_init_one’ at drivers/net/ethernet/broadcom/tg3.c:17542:12: drivers/net/ethernet/broadcom/tg3.c:17787:37: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds=] drivers/net/ethernet/broadcom/tg3.h: In function ‘tg3_init_one’: drivers/net/ethernet/broadcom/tg3.h:3203:18: note: while referencing ‘napi’