commit 87c261fd190c9dea09a793b1295e7cff9bb6044e
Author: Bernd Schmidt <bernds@codesourcery.com>
Date: Wed Sep 10 18:02:53 2014 +0200
Fix type mismatches in intrinsic functions.
* f95-lang.c (build_builtin_fntypes): Switch order of args for type
with index 2.
@@ -608,9 +608,9 @@ build_builtin_fntypes (tree *fntype, tree type)
fntype[0] = build_function_type_list (type, type, NULL_TREE);
/* type (*) (type, type) */
fntype[1] = build_function_type_list (type, type, type, NULL_TREE);
- /* type (*) (type, int) */
- fntype[2] = build_function_type_list (type,
- type, integer_type_node, NULL_TREE);
+ /* type (*) (int, type) */
+ fntype[2] = build_function_type_list (type, integer_type_node, type,
+ NULL_TREE);
/* type (*) (void) */
fntype[3] = build_function_type_list (type, NULL_TREE);
/* type (*) (type, &int) */