[Bug c++/90367] Spurious warning array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
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

[Bug c++/90367] Spurious warning array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
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

[Bug c++/90367] Spurious warning array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
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=edit preprocessed source Please see attachement.

[Bug c++/90367] Spurious warning array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
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.

[Bug c++/90367] Spurious warning array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
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 |

[Bug c++/90367] New: Spurious warning array subscript is above array bounds

2019-05-06 Thread 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

[Bug middle-end/63477] [6/7/8 Regression] Bogus warning with -O3 -Warray-bounds: array subscript is above array bounds

2019-05-06 Thread alexandre.ganea at ubisoft dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63477 Alexandre Ganea changed: What|Removed |Added CC||alexandre.ganea at ubisoft dot com