[Bug fortran/96220] -fc-prototypes forgets types for doubles
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 19 15:31:32 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96220
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Kथà¤nig <tkoenig@gcc.gnu.org>:
https://gcc.gnu.org/g:2e1b25350aa96b3f5678a056d0b55bb323c452d9
commit r11-2217-g2e1b25350aa96b3f5678a056d0b55bb323c452d9
Author: Thomas Koenig <tkoenig@gcc.gnu.org>
Date: Sun Jul 19 17:27:45 2020 +0200
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.
More information about the Gcc-bugs
mailing list