This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The following patch does the following[...]
a) Correct the dummy argument name; for "exit(status)" (is was "code" instead of "status") and for "new_line(A)" (it was "i").
b) It allows any integer kind for the exit subroutine. This is in the spirit of Fortran 2003 which also allows any kind for most of the intrinsic procedures. Status quo is to give a link-time error that exit_i1 etc. does not exist.
fortran/ 2007-02-23 Tobias Burnus <burnus@net-b.de>
PR fortran/30933 * intrinsic.c (add_functions): Correct name of dummy argument.
Index: gcc/fortran/intrinsic.c
===================================================================
--- gcc/fortran/intrinsic.c (revision 122263)
+++ gcc/fortran/intrinsic.c (working copy)
@@ -1911,7 +1911,7 @@
add_sym_1 ("new_line", NOT_ELEMENTAL, ACTUAL_NO, BT_CHARACTER, dc,
GFC_STD_F2003, gfc_check_new_line, gfc_simplify_new_line, NULL,
- i, BT_CHARACTER, dc, REQUIRED);
+ a, BT_CHARACTER, dc, REQUIRED);
add_sym_2 ("nint", ELEMENTAL, ACTUAL_YES, BT_INTEGER, di, GFC_STD_F77,
gfc_check_a_ikind, gfc_simplify_nint, gfc_resolve_nint,
@@ -2457,7 +2457,7 @@
add_sym_1s ("exit", 0, BT_UNKNOWN, 0, GFC_STD_GNU,
gfc_check_exit, NULL, gfc_resolve_exit,
- c, BT_INTEGER, di, OPTIONAL);
+ st, BT_INTEGER, di, OPTIONAL);
if ((gfc_option.allow_std & GFC_STD_GNU) || gfc_option.flag_all_intrinsics)
make_noreturn();
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |