[PATCH 1/2] Revert "Remove KIND argument from INDEX so it does not mess up scalarization."

Mikael Morin mikael@gcc.gnu.org
Sat Aug 7 18:32:59 GMT 2021

This reverts commit d09847357b965a2c2cda063827ce362d4c9c86f2 except for
its testcase.

	* intrinsic.c (add_sym_4ind): Remove.
	(add_functions): Use add_sym4 instead of add_sym4ind.
	Don’t special case the index intrinsic.
	* iresolve.c (gfc_resolve_index_func): Use the individual arguments
	directly instead of the full argument list.
	* intrinsic.h (gfc_resolve_index_func): Update the declaration
	* trans-decl.c (gfc_get_extern_function_decl): Don’t modify the
	list of arguments in the case of the index intrinsic.
 gcc/fortran/intrinsic.c  | 48 ++++++----------------------------------
 gcc/fortran/intrinsic.h  |  3 ++-
 gcc/fortran/iresolve.c   | 21 ++++--------------
 gcc/fortran/trans-decl.c | 24 +-------------------
 4 files changed, 14 insertions(+), 82 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-Remove-KIND-argument-from-INDEX-so-it-does-no.patch
Type: text/x-patch
Size: 6289 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210807/2afe813c/attachment-0001.bin>

More information about the Gcc-patches mailing list