Re: [PATCH 13/13] Coarray shared memory library

Richard Biener <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On Fri, 27 Feb 2026, Andreas Schwab wrote:

> On Feb 10 2026, Jerry D wrote:
> 
> > diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
> > index 23fd621e518..13097b4ab92 100644
> > --- a/libgfortran/acinclude.m4
> > +++ b/libgfortran/acinclude.m4
> > @@ -578,3 +578,15 @@ main ()
> >                         [Define to 1 if you have the `$1' function.])
> >    fi
> >  ])
> > +
> > +AC_DEFUN([LIBGFOR_CHECK_SANE_BUILTIN_CLZL], [
> > +  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
> 
> This breaks cross compilers.

In particular for example building offload compilers where we now see:

[  856s] checking whether the target has CRLF as line terminator... no
[  856s] configure: error: in 
`/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16
.0.1+git7751-build/gcc-16.0.1+git7751/obj-x86_64-suse-linux/amdgcn-amdhsa/libgfo
rtran':
[  856s] configure: error: cannot run test program while cross compiling
[  856s] See `config.log' for more details
[  856s] make[1]: *** [Makefile:14692: configure-target-libgfortran] Error 
1

Please fix.

Richard.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.