[Bug tree-optimization/59124] [4.8/4.9/5/6 Regression] Wrong warnings "array subscript is above array bounds"
daniel at imperfectcode dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 1 23:49:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124
daniel at imperfectcode dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel at imperfectcode dot com
--- Comment #15 from daniel at imperfectcode dot com ---
FYI, I'm seeing a similar error on Arch Linux using 5.1.0.
== Build lib/librte_eal/linuxapp/eal
CC eal.o
CC eal_hugepage_info.o
CC eal_memory.o
.../dpdk-2.0.0/lib/librte_eal/linuxapp/eal/eal_memory.c: In function
‘rte_eal_hugepage_init’:
.../dpdk-2.0.0/lib/librte_eal/linuxapp/eal/eal_memory.c:1193:35: error: array
subscript is above array bounds [-Werror=array-bounds]
internal_config.hugepage_info[j].hugepage_sz) {
^
.../dpdk-2.0.0/lib/librte_eal/linuxapp/eal/eal_memory.c:1198:34: error: array
subscript is above array bounds [-Werror=array-bounds]
internal_config.hugepage_info[j].num_pages[socket]++;
^
.../dpdk-2.0.0/lib/librte_eal/linuxapp/eal/eal_memory.c:1198:34: error: array
subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
.../dpdk-2.0.0/mk/internal/rte.compile-pre.mk:126: recipe for target
'eal_memory.o' failed
[...]
More information about the Gcc-bugs
mailing list