]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Revert to non-multilib-specific ISO_Fortran_binding.h
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 7 Sep 2021 04:25:11 +0000 (21:25 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 7 Sep 2021 04:28:50 +0000 (21:28 -0700)
commit13beaf9e8d2d8264c0ad8f6504793fdcf26f3f73
tree8ea243d3de3ba6344f71871647a24076a4363e3b
parent546ecb0054af302acf0839c7f3eb78598f8c0672
Fortran: Revert to non-multilib-specific ISO_Fortran_binding.h

Commit fef67987cf502fe322e92ddce22eea7ac46b4d75 changed the
libgfortran build process to generate multilib-specific versions of
ISO_Fortran_binding.h from a template, by running gfortran to identify
the values of the Fortran kind constants C_LONG_DOUBLE, C_FLOAT128,
and C_INT128_T.  This caused multiple problems with search paths, both
for build-tree testing and installed-tree use, not all of which have
been fixed.

This patch reverts to a non-multilib-specific .h file that uses GCC's
predefined preprocessor symbols to detect the supported types and map
them to kind values in the same way as the Fortran front end.

2021-09-06  Sandra Loosemore  <sandra@codesourcery.com>

libgfortran/
* ISO_Fortran_binding-1-tmpl.h: Deleted.
* ISO_Fortran_binding-2-tmpl.h: Deleted.
* ISO_Fortran_binding-3-tmpl.h: Deleted.
* ISO_Fortran_binding.h: New file to replace the above.
* Makefile.am (gfor_cdir): Remove MULTISUBDIR.
(ISO_Fortran_binding.h): Simplify to just copy the file.
* Makefile.in: Regenerated.
* mk-kinds-h.sh: Revert pieces no longer needed for
ISO_Fortran_binding.h.
libgfortran/ISO_Fortran_binding-2-tmpl.h [deleted file]
libgfortran/ISO_Fortran_binding-3-tmpl.h [deleted file]
libgfortran/ISO_Fortran_binding.h [moved from libgfortran/ISO_Fortran_binding-1-tmpl.h with 73% similarity]
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/mk-kinds-h.sh