elf: Silence GCC 11/12 false positive warning
commit33ead027586c3371e6765f9070b9564a5ba7e89d
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 17 Jun 2022 01:52:02 +0000 (16 18:52 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 17 Jun 2022 22:18:10 +0000 (17 15:18 -0700)
tree607cad7ade69525d3a497b9677996e816a738c63
parentc22eb807b0c8125101f6a274795425be2bbd0386
elf: Silence GCC 11/12 false positive warning

Silence GCC 11/12 false positive warning with -mavx512f on dl-load.c:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106008

$ gcc -O2 -fPIC -march=x86-64 -mavx512f -S -Wall ...
dl-load.c: In function ‘_dl_map_object_from_fd.constprop’:
dl-load.c:1158:30: warning: ‘(((char *)loadcmds.113_68 + _933 + 16))[329406144173384849].mapend’ may be used uninitialized [-Wmaybe-uninitialized]
elf/dl-load.c