[Bug libfortran/24685] New: real(10) formatted input is broken for huge values

2005-11-05 Thread jblomqvi at cc dot hut dot fi
l Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jblomqvi at cc dot hut dot fi GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24685

[Bug fortran/22519] Memory and binary disk layout disagree for real*10

2005-11-05 Thread jblomqvi at cc dot hut dot fi
--- Comment #6 from jblomqvi at cc dot hut dot fi 2005-11-05 18:12 --- (In reply to comment #5) > (In reply to comment #4) > > We need to settle what kind of disk image we want for real(kind=10) > > before resolving this for complex. > > I am strongly in favour o

[Bug libfortran/24305] Complex(10) formatted IO is broken.

2005-11-05 Thread jblomqvi at cc dot hut dot fi
--- Comment #2 from jblomqvi at cc dot hut dot fi 2005-11-05 18:08 --- Patch (that also fixes PR 24174) here: http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00348.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24305

[Bug libfortran/24174] real(10) array output broken

2005-11-05 Thread jblomqvi at cc dot hut dot fi
--- Comment #10 from jblomqvi at cc dot hut dot fi 2005-11-05 18:07 --- Updated**2 patch here: http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00348.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24174

[Bug libfortran/21820] Really, really, horrible IO performance

2005-11-01 Thread jblomqvi at cc dot hut dot fi
--- Comment #15 from jblomqvi at cc dot hut dot fi 2005-11-01 22:09 --- (In reply to comment #14) > (In reply to comment #13) > > The patch from #12 has been committed to mainline. > > So should this bug be closed? > It depends on what you consider "rea

[Bug libfortran/24383] mingw doesn't have SSIZE_MAX

2005-10-15 Thread jblomqvi at cc dot hut dot fi
--- Comment #3 from jblomqvi at cc dot hut dot fi 2005-10-15 20:43 --- I think something like LONG_MAX might be appropriate. long should be the same as size_t both on 32 and 64 bit mingw-windows, right (if 64 bit mingw indeed exists at all)? If LONG_MAX is too risky then at least

[Bug libfortran/24174] real(10) array output broken

2005-10-10 Thread jblomqvi at cc dot hut dot fi
--- Comment #9 from jblomqvi at cc dot hut dot fi 2005-10-11 06:11 --- Updated patch here: http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00572.html -- jblomqvi at cc dot hut dot fi changed: What|Removed |Added

[Bug libfortran/24305] Complex(10) formatted IO is broken.

2005-10-10 Thread jblomqvi at cc dot hut dot fi
--- Comment #1 from jblomqvi at cc dot hut dot fi 2005-10-11 05:55 --- Consider this testcase (from 24174): ! { dg-do run } ! PR 24174 program kind10_io real(kind=10) :: a,b(2), c complex(kind=10) :: d, e, f(2) character(len=180) :: tmp ! Test real(10) scalar and array

[Bug libfortran/24305] New: Complex(10) formatted IO is broken.

2005-10-10 Thread jblomqvi at cc dot hut dot fi
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jblomqvi at cc dot hut dot fi GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24305

[Bug libfortran/24174] real(10) array output broken

2005-10-09 Thread jblomqvi at cc dot hut dot fi
--- Comment #8 from jblomqvi at cc dot hut dot fi 2005-10-09 21:29 --- Well, a slightly less broken approach than the patch in #3 would be to use sizeof(GFC_REAL_10) and sizeof(GFC_COMPLEX_10) instead of hardcoded sizes. But the problem with this would still be 1) location of pad bytes

[Bug libfortran/24174] real(10) array output broken

2005-10-09 Thread jblomqvi at cc dot hut dot fi
--- Comment #7 from jblomqvi at cc dot hut dot fi 2005-10-09 20:52 --- (In reply to comment #5) > > It should be noted that the patch assumes that the padding for real(10) is > > 10 > > bytes data + 2 bytes padding. This works on i686-Linux, might not work on >

[Bug libfortran/24174] real(10) array output broken

2005-10-09 Thread jblomqvi at cc dot hut dot fi
--- Comment #6 from jblomqvi at cc dot hut dot fi 2005-10-09 19:35 --- (In reply to comment #5) > > It should be noted that the patch assumes that the padding for real(10) is > > 10 > > bytes data + 2 bytes padding. This works on i686-Linux, might not work on >

[Bug libfortran/23363] gfortran 30 x slower that g77 on random I/O

2005-10-09 Thread jblomqvi at cc dot hut dot fi
--- Comment #9 from jblomqvi at cc dot hut dot fi 2005-10-09 17:41 --- (In reply to comment #8) > Can you do timings with today's compiler? > Performance is now equivalent with g77, a factor of 500 times faster than mainline a month ago. I don't know if any of these p

[Bug libfortran/24174] real(10) array output broken

2005-10-03 Thread jblomqvi at cc dot hut dot fi
--- Comment #4 from jblomqvi at cc dot hut dot fi 2005-10-03 19:40 --- Created an attachment (id=9866) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9866&action=view) Testcase And here is a test case to go with the previous patch. Sorry my mail is b0rked at the moment so

[Bug libfortran/24174] real(10) array output broken

2005-10-03 Thread jblomqvi at cc dot hut dot fi
--- Comment #3 from jblomqvi at cc dot hut dot fi 2005-10-03 19:37 --- Created an attachment (id=9865) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9865&action=view) Patch for PR24174, also fixes formatted output for complex(10) libgfortran Changelog: 2005-10-03

[Bug libfortran/24174] real(10) array output broken

2005-10-03 Thread jblomqvi at cc dot hut dot fi
--- Comment #1 from jblomqvi at cc dot hut dot fi 2005-10-03 09:39 --- Ah, yes. Also see PR22519 and PR23419. Which way do we want it for unformatted? Should kind=10 use 10 bytes of storage or should it use whatever the padded size is? I would prefer the padded size, as otherwise we

[Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work

2005-09-29 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-29 18:59 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01841.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24112

[Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work

2005-09-29 Thread jblomqvi at cc dot hut dot fi
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jblomqvi at cc dot hut dot |dot org |fi Status|NEW

[Bug libfortran/24112] New: Reopening file with STATUS='OLD' doesn't work

2005-09-28 Thread jblomqvi at cc dot hut dot fi
nnot change STATUS parameter in OPEN statement -- Summary: Reopening file with STATUS='OLD' doesn't work Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libfortran

[Bug fortran/23814] unformatted files from gfortran are incompatible with g77 unformatted files and solaris f95 unformatted files

2005-09-11 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-11 12:09 --- Bud Davis is back and working on the pluggable record markers patch. Expect it to be completed and committed within a few weeks. There is no simple solution that is right for all situations. Gfortran uses

[Bug libfortran/23363] gfortran 30 x slower that g77 on random I/O

2005-09-11 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-11 11:15 --- The patch from #5 has been committed to mainline, so now we lose to g77 only by a factor of 30 and not 500 in case the file exists. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23363

[Bug libfortran/21820] Really, really, horrible IO performance

2005-09-11 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-11 11:10 --- The patch from #12 has been committed to mainline. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21820

[Bug libfortran/23770] unaligned buffers in i/o library force use of memcpy()

2005-09-08 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-09 06:44 --- And, there's a bug in my test program. Obviously the last for loop should be for (i = 0; i < LEN; i += 4) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23770

[Bug libfortran/23770] unaligned buffers in i/o library force use of memcpy()

2005-09-08 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-09 06:41 --- Did you by any chance mean PR 23556? That looks more like it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23770

[Bug libfortran/23770] unaligned buffers in i/o library force use of memcpy()

2005-09-08 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-08 21:25 --- Huh, I don't see how this relates to PR 23356. Surely you wrote the wrong number? Anyway, I don't think memcpy is that bad. Consider the following program: #include #include #include #

[Bug libfortran/21820] Really, really, horrible IO performance

2005-09-04 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-04 09:49 --- Removing mmap improves performance, patch: http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00176.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21820

[Bug libfortran/23363] gfortran 30 x slower that g77 on random I/O

2005-09-04 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-04 09:47 --- This patch improves performance 20-fold for the case where the file already exists: http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00176.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23363

[Bug fortran/22390] Implement FLUSH statement

2005-07-10 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-07-11 05:55 --- Proposed patch here: http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00698.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22390

[Bug fortran/22390] New: Implement FLUSH statement

2005-07-09 Thread jblomqvi at cc dot hut dot fi
Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: fortran AssignedTo: jblomqvi at cc dot hut dot fi ReportedBy: jblomqvi at cc dot hut dot fi CC: gcc-bugs at gcc dot gnu dot org

[Bug fortran/18918] Eventually support the co-array f95 extension in gfortran

2005-06-20 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-20 07:25 --- Apparently it has been decided that co-arrays will be included in the next revision of the Fortran standard. See http://www.nag.co.uk/sc22wg5/ and ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1639.txt

[Bug fortran/20786] Can't use AINT intrinsic with KIND parameter

2005-06-11 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-11 20:07 --- Actually, ANINT also exhibits the same problem: implicit none real(4) :: r = 42.7, r2 r2 = aint (r,kind=8) print *, 'aint: ', r2 r2 = anint (r, kind=8) print

[Bug libfortran/16339] Unformatted i/o on large arrays inefficient

2005-06-05 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-05 21:19 --- Some further thoughts on this issue: http://gcc.gnu.org/ml/fortran/2005-06/msg00084.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16339

[Bug libfortran/16339] Unformatted i/o on large arrays inefficient

2005-06-04 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-04 17:50 --- It seems that with current mainline, while gfortran still loses to g77 and ifort, the difference isn't that large. Executing via strace shows that writes are nowadays done in 8k blocks, which pro

[Bug libfortran/21621] Inconsistency with binary sequential output

2005-05-24 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-05-24 20:02 --- Well no, the standard does not specify how unformatted sequential record markers are implemented. In short, gfortran uses markers of type off_t, which is 64 bits on operating systems with large file (LFS

[Bug fortran/20846] inquire(FILE=..., UNIT=...) not flagged as error

2005-05-24 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-05-24 18:04 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02298.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20846

[Bug fortran/20786] Can't use AINT intrinsic with KIND parameter

2005-05-23 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-05-23 18:22 --- The ICE seems to have disappeared, but it still doesn't work correctly. E.g. implicit none real(4) :: r = 42.0 r = aint (r,kind=8) print *, r end Prints out 0.0

[Bug libfortran/19303] Unformatted record header is 4-bytes on 32-bit targets

2005-02-18 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-02-18 23:42 --- Somewhat related patch here: http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01085.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19303

[Bug fortran/18918] Eventually support the co-array f95 extension in gfortran

2005-02-11 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2005-02-11 17:24 --- You might want to check out the "global arrays" toolkit at http://www.emsl.pnl.gov/docs/global/ga.html GA implements the same programming model as Co-Array Fortran, but it's a library, so a

[Bug fortran/17590] Standard conformance should take intrinsics into account.

2004-10-31 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2004-10-31 15:22 --- Ok, my patch is here: http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02748.html The only major difference compared to Graham's patch is the use of __builtin_alloca instead of gfc_getmem. --

[Bug fortran/17590] Standard conformance should take intrinsics into account.

2004-10-31 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2004-10-31 13:47 --- I'm reopening this PR since a bug crept in, apparently Paul changed the code to be C89 conformant while it depended on C99 VLA:s to function properly. If you look at intrinsic.c:check_intrinsic_standar

[Bug fortran/14993] RAN (extension) intrinsic/function not supported

2004-10-31 Thread jblomqvi at cc dot hut dot fi
-- Bug 14993 depends on bug 17590, which changed state. Bug 17590 Summary: Standard conformance should take intrinsics into account. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17590 What|Old Value |New Value

[Bug fortran/17590] Standard conformance should take intrinsics into account.

2004-10-29 Thread jblomqvi at cc dot hut dot fi
--- Additional Comments From jblomqvi at cc dot hut dot fi 2004-10-29 07:16 --- Here is the revised patch, which for some reason isn't flagged as belonging to the same thread as the original: http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00829.html -- http://gcc.gnu.org/bug