[PATCH, Fortran] Skip gfortran.dg/PR100914.f90 on targets that don't provide quadmath.h
H.J. Lu
hjl.tools@gmail.com
Sun Sep 5 13:31:03 GMT 2021
On Sat, Sep 4, 2021 at 7:31 PM Sandra Loosemore <sandra@codesourcery.com> wrote:
>
> The testcase gfortran.dg/PR100914.f90 that I recently checked in
> (originally written by José Rui Faustino de Sousa) depends on the
> <quadmath.h> header file to obtain a typedef for __complex128. It
> appears not to be possible to define an equivalent type in a portable
> way in the testcase itself (see
> https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/Floating-Types.html) so
> this patch skips the test entirely on targets where quadmath.h is not
> available.
>
> The target-supports.exp change was cut-and-pasted from similar code in
> that file, but I haven't figured out how to test this change in a build
> that doesn't provide quadmath.h (e.g., my aarch64-linux-gnu toolchain
> build attempt croaked with an unrelated compilation error in glibc).
> Perhaps someone who previously encountered the FAILs on this testcase
> can confirm that it's skipped with this change?
Since libqaudmath provides <quadmath.h>, I prefer either of 2 patches
enclosed here.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: application/octet-stream
Size: 395 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210905/68fe05dd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: application/octet-stream
Size: 863 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210905/68fe05dd/attachment-0001.obj>
More information about the Fortran
mailing list