public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30941] New: intrinsic: FLUSH
@ 2007-02-23 22:24 dfranke at gcc dot gnu dot org
2007-02-23 22:29 ` [Bug fortran/30941] " dfranke at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-23 22:24 UTC (permalink / raw)
To: gcc-bugs
1. The name of the dummy argument is "COUNT" instead of "UNIT".
2. FLUSH implements option (iii) of Tobias' list in [1], but (i) was agreed
upon (at least for EXIT)
3. The documentation states:
UNIT (Optional) The type shall be INTEGER.
Be more specific here.
[1] http://gcc.gnu.org/ml/fortran/2007-02/msg00538.html
--
Summary: intrinsic: FLUSH
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
OtherBugsDependingO 30932
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30941
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30941] intrinsic: FLUSH
2007-02-23 22:24 [Bug fortran/30941] New: intrinsic: FLUSH dfranke at gcc dot gnu dot org
@ 2007-02-23 22:29 ` dfranke at gcc dot gnu dot org
2007-02-23 22:58 ` dfranke at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-23 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dfranke at gcc dot gnu dot org 2007-02-23 22:28 -------
libgfortran/io/intrinsics.c provides flush_i8, but that one is never used.
INTEGER(kind=8) :: i8
CALL FLUSH(i8)
results in
MAIN__ ()
{
int8 int_8;
_gfortran_set_std (70, 127, 0, 0);
{
int4 D.1001;
D.1001 = (int4) int_8;
_gfortran_flush_i4 (&D.1001);
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30941
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30941] intrinsic: FLUSH
2007-02-23 22:24 [Bug fortran/30941] New: intrinsic: FLUSH dfranke at gcc dot gnu dot org
2007-02-23 22:29 ` [Bug fortran/30941] " dfranke at gcc dot gnu dot org
@ 2007-02-23 22:58 ` dfranke at gcc dot gnu dot org
2007-03-03 10:22 ` fxcoudert at gcc dot gnu dot org
2010-05-13 13:50 ` dfranke at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-23 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dfranke at gcc dot gnu dot org 2007-02-23 22:58 -------
The "problem" described in comment #1 depends on the default integer kind.
See also: http://gcc.gnu.org/ml/fortran/2007-02/msg00542.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30941
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30941] intrinsic: FLUSH
2007-02-23 22:24 [Bug fortran/30941] New: intrinsic: FLUSH dfranke at gcc dot gnu dot org
2007-02-23 22:29 ` [Bug fortran/30941] " dfranke at gcc dot gnu dot org
2007-02-23 22:58 ` dfranke at gcc dot gnu dot org
@ 2007-03-03 10:22 ` fxcoudert at gcc dot gnu dot org
2010-05-13 13:50 ` dfranke at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-03 10:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-03-03 10:22 -------
For what it's worth, here's my opinion: we don't want to have a zillion of
different versions of each library function. It might be worth doing for
functions that are expected to be called in hot spots of the user code, but not
for FLUSH, EXIT and other such intrinsics. So, it would be better to agree once
and for all on a reasonnable choice of kind, depending on the use done for the
intrinsic, and implementing and documenting this.
I think in the case of FLUSH, there's an easy choice for the kind of UNIT. The
unit numbers are always, in the I/O library, of kind=4 (see libgfortran.h,
struct st_parameter_common).
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-03-03 10:22:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30941
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30941] intrinsic: FLUSH
2007-02-23 22:24 [Bug fortran/30941] New: intrinsic: FLUSH dfranke at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-03-03 10:22 ` fxcoudert at gcc dot gnu dot org
@ 2010-05-13 13:50 ` dfranke at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-13 13:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dfranke at gcc dot gnu dot org 2010-05-13 13:50 -------
This (a) didn't turn out as much of an issue and (b) the general problem is
known. Closing this specific incarnation as WONTFIX.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30941
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-13 13:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 22:24 [Bug fortran/30941] New: intrinsic: FLUSH dfranke at gcc dot gnu dot org
2007-02-23 22:29 ` [Bug fortran/30941] " dfranke at gcc dot gnu dot org
2007-02-23 22:58 ` dfranke at gcc dot gnu dot org
2007-03-03 10:22 ` fxcoudert at gcc dot gnu dot org
2010-05-13 13:50 ` dfranke at gcc dot gnu dot org
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).