gcc/libgfortran
Sandra Loosemore fef67987cf Bind(C): Fix type encodings in ISO_Fortran_binding.h
ISO_Fortran_binding.h had many incorrect hardwired kind encodings in
the definitions of the CFI_type_* macros.  Additionally, not all
targets support all the defined type encodings, and the Fortran
standard requires those macros to have a negative value.

This patch changes ISO_Fortran_binding.h to use sizeof instead of
hard-coded sizes, and assembles it from fragments that reflect the
set of types supported by the target.

2021-07-22  Sandra Loosemore  <sandra@codesourcery.com>
	    Tobias Burnus  <tobias@codesourcery.com>

libgfortran/
	PR libfortran/101305
	* ISO_Fortran_binding.h: Fix hard-coded sizes and split into...
	* ISO_Fortran_binding-1-tmpl.h: New file.
	* ISO_Fortran_binding-2-tmpl.h: New file.
	* ISO_Fortran_binding-3-tmpl.h: New file.
	* Makefile.am: Add rule for generating ISO_Fortran_binding.h.
	Adjust pathnames to that file.
	* Makefile.in: Regenerated.
	* mk-kinds-h.sh: New file.
	* runtime/ISO_Fortran_binding.c: Fix include path.
2021-07-27 21:20:21 -07:00
..
caf Steve Kargl <kargl@gcc.gnu.org> 2021-05-22 13:27:42 +02:00
config
generated PR libfortran/99218 - matmul on temporary array accesses invalid memory 2021-03-05 20:58:51 +01:00
ieee libgfortran: Fix PR95647 by changing the interfaces of operators .eq. and .ne. 2021-02-12 07:58:16 -08:00
intrinsics Fix "tailing" typo. 2021-06-08 09:42:18 +02:00
io Fix "tailing" typo. 2021-06-08 09:42:18 +02:00
m4 PR libfortran/99218 - matmul on temporary array accesses invalid memory 2021-03-05 20:58:51 +01:00
runtime Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
acinclude.m4
aclocal.m4
c99_protos.h
ChangeLog Daily bump. 2021-07-27 00:16:27 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
config.h.in
configure Fortran: Re-enable 128-bit integers for AMD GCN 2021-06-29 08:19:56 -07:00
configure.ac Fortran: Re-enable 128-bit integers for AMD GCN 2021-06-29 08:19:56 -07:00
configure.host
gfortran.map Steve Kargl <kargl@gcc.gnu.org> 2021-05-22 13:27:42 +02:00
ISO_Fortran_binding-1-tmpl.h Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
ISO_Fortran_binding-2-tmpl.h Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
ISO_Fortran_binding-3-tmpl.h Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
kinds-override.h
libgfortran.h Fortran: Fix some issues with pointers to character. 2021-06-05 11:12:50 +00:00
libgfortran.spec.in
libtool-version
Makefile.am Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
Makefile.in Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
mk-kinds-h.sh Bind(C): Fix type encodings in ISO_Fortran_binding.h 2021-07-27 21:20:21 -07:00
mk-sik-inc.sh
mk-srk-inc.sh