https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63477
Alexandre Ganea changed:
What|Removed |Added
CC||alexandre.ganea at ubisoft dot
com
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: alexandre.ganea at ubisoft dot com
Target Milestone: ---
We get what seems like a spurious warning at the following location in LLVM:
https://github.com/llvm/llvm-project/blob/master/llvm/lib/Target/AMDGPU
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #2 from Alexandre Ganea ---
Slighly modified version with zero-init variables still shows the warning:
https://godbolt.org/z/Mht3uF
Andrew: you say "I think you reduced it too much". I simply used "gcc file.cpp
-O3 -Warray-bounds | g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #3 from Alexandre Ganea ---
Another strange thing, if I change 'SDValue NewBldVec[4];' to 'SDValue
NewBldVec[14];' in the code where the issue occurs, the warning goes away. If I
set it to 13 or less, the warning is still there.
http
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #5 from Alexandre Ganea ---
Created attachment 46306
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46306&action=edit
preprocessed source
Please see attachement.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #6 from Alexandre Ganea ---
...and the command-line:
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Target/AMDGPU
-I/mnt/f/svn/llvm/lib/Target/AMDGPU -Iinclu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #7 from Alexandre Ganea ---
I used the following GCC version for preprocessing/compiling:
$ /usr/bin/c++ --version
c++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0