https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114027
chenglulu <chenglulu at loongson dot cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chenglulu at loongson dot cn
--- Comment #17 from chenglulu <chenglulu at loongson dot cn> ---
(In reply to Richard Biener from comment #14)
> int __attribute__((noipa))
> foo (int *f, int n)
> {
> int res = 0;
> for (int i = 0; i < n; ++i)
> {
> if (f[2*i])
> res = 2;
> if (f[2*i+1])
> res = -2;
Sorry I have a problem, the array f has 16 elements, the value of n is 16, when
the value of i is greater than 7, isn't it out of bounds to access f[2*i] and
f[2*i+1]?