]> 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)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 23 Jul 2020 16:07:25 +0000 (18:07 +0200)
commit5b9f6489081520b7cb10d3ddfae6f010e0986314
treed247e747fc6188aaa034ab563fc8f3039e495256
parent3373a73172d0e39fe054ab2d4bbff746b36c0fe8
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.

(cherry picked from commit 2e1b25350aa96b3f5678a056d0b55bb323c452d9)
gcc/fortran/dump-parse-tree.c