https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97160
--- Comment #2 from Dave Love <fx at gnu dot org> --- (In reply to Richard Biener from comment #1) > gcc/fortran/f95-lang.c: if (targetm.libc_has_function (function_sincos)) I haven't checked why it's used there, but I concluded this wasn't a front end issue from the relevant dump from x86_64 gcc 10, which didn't have the sincos which appears in the end. Thanks for the hint, especially as the different glibc in AT is suggestive. I don't know the internals these days. However, the condition is always true with glibc as far as I can tell from the source (confirmed with gdb), and sincos does appear in the profile, so it doesn't seem to be that. > not sure how you configure your compiler? What OS are you on? It's on RHEL7. I built it with spack (if you know that) because the system doesn't have several of the development libraries, but I think it's fairly vanilla. I can get the gfortran -v output later.