https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124266
Soumya AR <soumyaa at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |soumyaa at gcc dot gnu.org
--- Comment #15 from Soumya AR <soumyaa at gcc dot gnu.org> ---
I'm seeing this ICE with the following as well (reduced from a larger
benchmark):
Compiler flags: -O3 -mcpu=neoverse-v2
subroutine foo(trigs, m, n)
integer :: m, k, n, nu
double precision :: trigs(*)
do k = 0, n/2
trigs(2*k+1) = cos(dble(k+n))
trigs(2*k+2) = sin(dble(k+n))
enddo
nu = n
do
nu = nu / 2
if (nu == 1) exit
enddo
m = nu
end subroutine foo
This ICE only occurs with glibc >2.39, because it ships with
/usr/include/finclude/aarch64-linux-gnu/math-vector-fortran.h which is
pre-included by gfortran. If I remove the pre-include, I don't observe the ICE.