]> git.ipfire.org Git - thirdparty/gcc.git/commit
Always use name from c_interop_kinds_table for -fc-prototypes.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 19 Jul 2020 15:27:45 +0000 (17:27 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:32 +0000 (13:18 -0300)
commitd2be23440c26b64ed9d9125be73c3f17eff8cce1
tree256635b666fee92ffa45dfc81d2bc84f6e72a20a
parent8007dba62c1b521ceca590648f6d3a9c0778348e
Always use name from c_interop_kinds_table for -fc-prototypes.

When a user specified a KIND that was a parameter taking the value
of an iso_c_binding KIND, the code used the name of that parameter
to look up the type name.  Corrected by always looking it up in
the table of C interop kinds (which was previously done for
non-C-interop types, anyway).

gcc/fortran/ChangeLog:

PR fortran/96220
* dump-parse-tree.c (get_c_type_name): Always use the entries from
c_interop_kinds_table to find the correct C type.
gcc/fortran/dump-parse-tree.c