https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89887
--- Comment #6 from vfdff <zhongyunde at huawei dot com> --- Yes, I agree with your point, it is not a bug. I doubt there is something prevent us finding the array not be touched with the option -fno-toplevel-reorder -O2 (based on gcc 7.3), and we may get better performance if we known it is ready only data (based on gcc 7.3).