* [gfortran,committed] Fix last bits of EXIT intrinsic
@ 2007-08-06 22:29 FX Coudert
2007-08-06 23:08 ` FX Coudert
0 siblings, 1 reply; 2+ messages in thread
From: FX Coudert @ 2007-08-06 22:29 UTC (permalink / raw)
To: Fortran List, gcc-patches list
Committed as rev. 127256 to clear up PR30933.
FX
Index: ChangeLog
===================================================================
--- ChangeLog (revision 127255)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR fortran/30933
+ * iresolve.c (gfc_resolve_exit): Convert argument to default
+ integer kind.
+
2007-08-06 Daniel Franke <franke.daniel@gmail.com>
* resolve.c (derived_pointer): Removed, replaced callers by
access
Index: iresolve.c
===================================================================
--- iresolve.c (revision 127255)
+++ iresolve.c (working copy)
@@ -2739,14 +2739,18 @@ void
gfc_resolve_exit (gfc_code *c)
{
const char *name;
- int kind;
+ gfc_typespec ts;
+ gfc_expr *n;
- if (c->ext.actual->expr != NULL)
- kind = c->ext.actual->expr->ts.kind;
- else
- kind = gfc_default_integer_kind;
+ /* The STATUS argument has to be of default kind. If it is not,
+ we convert it. */
+ ts.type = BT_INTEGER;
+ ts.kind = gfc_default_integer_kind;
+ n = c->ext.actual->expr;
+ if (n != NULL && n->ts.kind != ts.kind)
+ gfc_convert_type (n, &ts, 2);
- name = gfc_get_string (PREFIX ("exit_i%d"), kind);
+ name = gfc_get_string (PREFIX ("exit_i%d"), ts.kind);
c->resolved_sym = gfc_get_intrinsic_sub_symbol (name);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gfortran,committed] Fix last bits of EXIT intrinsic
2007-08-06 22:29 [gfortran,committed] Fix last bits of EXIT intrinsic FX Coudert
@ 2007-08-06 23:08 ` FX Coudert
0 siblings, 0 replies; 2+ messages in thread
From: FX Coudert @ 2007-08-06 23:08 UTC (permalink / raw)
To: FX Coudert; +Cc: Fortran List, gcc-patches list
Following that, I also cleared up CHDIR and ALARM:
* http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127257
* http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127259
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-06 23:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-06 22:29 [gfortran,committed] Fix last bits of EXIT intrinsic FX Coudert
2007-08-06 23:08 ` FX Coudert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).