public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/23272] New: inquire via filename fails on mingw32
@ 2005-08-07 12:48 fxcoudert at gcc dot gnu dot org
2005-08-07 13:05 ` [Bug libfortran/23272] " fxcoudert at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-08-07 12:48 UTC (permalink / raw)
To: gcc-bugs
$ cat inquire_2.f90
INTEGER UNIT
OPEN(FILE='CSEQ', UNIT=23)
INQUIRE(FILE='CSEQ',NUMBER=UNIT)
IF (UNIT.NE.23) CALL ABORT
END
$ gfc inquire_2.f90 && ./a.exe
Abort
--
Summary: inquire via filename fails on mingw32
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] inquire via filename fails on mingw32
2005-08-07 12:48 [Bug libfortran/23272] New: inquire via filename fails on mingw32 fxcoudert at gcc dot gnu dot org
@ 2005-08-07 13:05 ` fxcoudert at gcc dot gnu dot org
2005-08-07 15:19 ` [Bug libfortran/23272] [mingw32] inquire via filename fails pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-08-07 13:05 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |23261
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
2005-08-07 12:48 [Bug libfortran/23272] New: inquire via filename fails on mingw32 fxcoudert at gcc dot gnu dot org
2005-08-07 13:05 ` [Bug libfortran/23272] " fxcoudert at gcc dot gnu dot org
@ 2005-08-07 15:19 ` pinskia at gcc dot gnu dot org
2005-09-02 21:27 ` fxcoudert at gcc dot gnu dot org
2005-09-03 7:55 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 15:19 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|inquire via filename fails |[mingw32] inquire via
|on mingw32 |filename fails
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
2005-08-07 12:48 [Bug libfortran/23272] New: inquire via filename fails on mingw32 fxcoudert at gcc dot gnu dot org
2005-08-07 13:05 ` [Bug libfortran/23272] " fxcoudert at gcc dot gnu dot org
2005-08-07 15:19 ` [Bug libfortran/23272] [mingw32] inquire via filename fails pinskia at gcc dot gnu dot org
@ 2005-09-02 21:27 ` fxcoudert at gcc dot gnu dot org
2005-09-03 7:55 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-02 21:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-09-02 21:27 -------
libgfortran does the inquire by fstating the files and comparing devices types
and inode numbers (st_dev and st_ino). But, on mingw, fstat returns 0 as inode
number for all files. Thus, the inquire fails (that is, the comparison match for
the first unit tested, which happens to be unit=0).
How can we uniquely identify a file on Windows?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-02 21:27:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
2005-08-07 12:48 [Bug libfortran/23272] New: inquire via filename fails on mingw32 fxcoudert at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-09-02 21:27 ` fxcoudert at gcc dot gnu dot org
@ 2005-09-03 7:55 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-03 7:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-09-03 07:55 -------
For info, here is a way to create a pseudo inode number for stat and fstat using
mingw32 and a few Windows API calls:
http://gnuwin32.sourceforge.net/compile.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2007-09-20 22:57 ` fxcoudert at gcc dot gnu dot org
@ 2007-09-20 22:58 ` fxcoudert at gcc dot gnu dot org
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-09-20 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from fxcoudert at gcc dot gnu dot org 2007-09-20 22:58 -------
Fixed.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2007-08-22 11:53 ` fxcoudert at gcc dot gnu dot org
@ 2007-09-20 22:57 ` fxcoudert at gcc dot gnu dot org
2007-09-20 22:58 ` fxcoudert at gcc dot gnu dot org
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-09-20 22:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-09-20 22:57 -------
Subject: Bug 23272
Author: fxcoudert
Date: Thu Sep 20 22:56:48 2007
New Revision: 128636
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128636
Log:
PR libfortran/23272
* io/unix.c (id_from_handle, id_from_path, id_from_fd): New
functions.
(compare_file_filename, find_file, find_file0): Use the new
functions above.
* gfortran.dg/inquire_10.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/inquire_10.f90
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/unix.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2007-07-27 12:03 ` jv244 at cam dot ac dot uk
@ 2007-08-22 11:53 ` fxcoudert at gcc dot gnu dot org
2007-09-20 22:57 ` fxcoudert at gcc dot gnu dot org
2007-09-20 22:58 ` fxcoudert at gcc dot gnu dot org
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-22 11:53 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-09-28 14:09:37 |2007-08-22 11:53:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2007-07-27 11:24 ` fxcoudert at gcc dot gnu dot org
@ 2007-07-27 12:03 ` jv244 at cam dot ac dot uk
2007-08-22 11:53 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-07-27 12:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jv244 at cam dot ac dot uk 2007-07-27 12:03 -------
(In reply to comment #7)
> Added. I can't give you permission to add keywords, the only thing I can do is
> make you a CONFIRMer (which I just did).
OK, I might use that from time to time. Who has the power to allow me to
add/change keywords?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2007-07-20 19:36 ` jv244 at cam dot ac dot uk
@ 2007-07-27 11:24 ` fxcoudert at gcc dot gnu dot org
2007-07-27 12:03 ` jv244 at cam dot ac dot uk
` (3 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-07-27 11:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-07-27 11:24 -------
(In reply to comment #6)
> should one add a mingw maintainer to the CC?
Adding Danny Smith to the CC list.
> BTW, this one misses the wrong-code keyword (and I don't have permission to add
> it, which is annoying).
Added. I can't give you permission to add keywords, the only thing I can do is
make you a CONFIRMer (which I just did).
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dannysmith at gcc dot gnu
| |dot org
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-02-03 20:31 ` fxcoudert at gcc dot gnu dot org
@ 2007-07-20 19:36 ` jv244 at cam dot ac dot uk
2007-07-27 11:24 ` fxcoudert at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-07-20 19:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jv244 at cam dot ac dot uk 2007-07-20 19:35 -------
should one add a mingw maintainer to the CC?
BTW, this one misses the wrong-code keyword (and I don't have permission to add
it, which is annoying).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
2005-10-22 22:31 ` fxcoudert at gcc dot gnu dot org
2005-10-23 20:44 ` cvs-commit at gcc dot gnu dot org
@ 2006-02-03 20:31 ` fxcoudert at gcc dot gnu dot org
2007-07-20 19:36 ` jv244 at cam dot ac dot uk
` (5 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-02-03 20:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2006-02-03 20:31 -------
Unfortunately, I don't have time to work on this, so I let it go. Sorry.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|fxcoudert at gcc dot gnu dot|unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
2005-10-22 22:31 ` fxcoudert at gcc dot gnu dot org
@ 2005-10-23 20:44 ` cvs-commit at gcc dot gnu dot org
2006-02-03 20:31 ` fxcoudert at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-23 20:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from cvs-commit at gcc dot gnu dot org 2005-10-23 20:43 -------
Subject: Bug 23272
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: fxcoudert@gcc.gnu.org 2005-10-23 20:43:54
Modified files:
libgfortran : ChangeLog acinclude.m4 config.h.in configure
configure.ac
libgfortran/io : io.h open.c unix.c
Log message:
PR libfortran/23272
* acinclude.m4 (LIBGFOR_CHECK_WORKING_STAT): New check.
* configure.ac: Use LIBGFOR_CHECK_WORKING_STAT.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* io/unix.c (compare_file_filename): Add fallback case for
systems without working stat.
* io/open.c (already_open): Correct call to
compare_file_filename.
* io/io.h: Correct proto for compare_file_filename.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.331&r2=1.332
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/acinclude.m4.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/config.h.in.diff?cvsroot=gcc&r1=1.28&r2=1.29
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/configure.diff?cvsroot=gcc&r1=1.47&r2=1.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/configure.ac.diff?cvsroot=gcc&r1=1.37&r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/io.h.diff?cvsroot=gcc&r1=1.33&r2=1.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/open.c.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/unix.c.diff?cvsroot=gcc&r1=1.46&r2=1.47
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/23272] [mingw32] inquire via filename fails
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
@ 2005-10-22 22:31 ` fxcoudert at gcc dot gnu dot org
2005-10-23 20:44 ` cvs-commit at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-10-22 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2005-10-22 22:31 -------
Patch posted (for simple cases only).
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |10/msg01387.html
Status|NEW |ASSIGNED
Keywords| |patch
Last reconfirmed|2005-09-02 21:27:11 |2005-10-22 22:31:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23272
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-09-20 22:58 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-07 12:48 [Bug libfortran/23272] New: inquire via filename fails on mingw32 fxcoudert at gcc dot gnu dot org
2005-08-07 13:05 ` [Bug libfortran/23272] " fxcoudert at gcc dot gnu dot org
2005-08-07 15:19 ` [Bug libfortran/23272] [mingw32] inquire via filename fails pinskia at gcc dot gnu dot org
2005-09-02 21:27 ` fxcoudert at gcc dot gnu dot org
2005-09-03 7:55 ` fxcoudert at gcc dot gnu dot org
[not found] <bug-23272-10259@http.gcc.gnu.org/bugzilla/>
2005-10-22 22:31 ` fxcoudert at gcc dot gnu dot org
2005-10-23 20:44 ` cvs-commit at gcc dot gnu dot org
2006-02-03 20:31 ` fxcoudert at gcc dot gnu dot org
2007-07-20 19:36 ` jv244 at cam dot ac dot uk
2007-07-27 11:24 ` fxcoudert at gcc dot gnu dot org
2007-07-27 12:03 ` jv244 at cam dot ac dot uk
2007-08-22 11:53 ` fxcoudert at gcc dot gnu dot org
2007-09-20 22:57 ` fxcoudert at gcc dot gnu dot org
2007-09-20 22:58 ` fxcoudert 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).