https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|wrong-code |missed-optimization
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Do you have the pre-include of the glibc libmvec "fortran header"? That is,
please provide -v output of the compile (which should hopefully expose the
specs processing).
Also interesting to see is the linker resolution which ultimatively decides
here. But I guess that -mveclibabi should disable the pre-including of the
libmvec "header". I wonder how it does that for C when you include math.h?
ISTR we have set up the vectorizer to prefer -mveclibabi before considering
OpenMP SIMD ABI style processing. That should work for fortran as well.