This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libf2c/10885: On 64-bit targets one can write >2Gb records in sequential files, but not in direct access files
- From: toon at moene dot indiv dot nluug dot nl
- To: gcc-gnats at gcc dot gnu dot org
- Cc: zlomj9amartax dot karlin dot mff dot cuni dot cz at sources dot redhat dot com, winfrid dot tschiedel at hpc dot fujitsu-siemens dot com
- Date: 20 May 2003 20:33:21 -0000
- Subject: libf2c/10885: On 64-bit targets one can write >2Gb records in sequential files, but not in direct access files
- Reply-to: toon at moene dot indiv dot nluug dot nl
>Number: 10885
>Category: libf2c
>Synopsis: On 64-bit targets one can write >2Gb records in sequential files, but not in direct access files
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 20 20:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Winfrid Tschiedel
>Release: all
>Organization:
>Environment:
all 64-bit targets
>Description:
The following code aborts with:
do_ud: off end of record
apparent state: unit 10 named fort.10
lately writing direct unformatted external IO
Sequential I/O uses `long' as the type of the record length,
which will be 64 bits on most 64-bit targets.
Direct I/O should do the same.
The compiler accepts an INTEGER*8 as an argument to
RECL=... on the open statement - see if that really is
compiled correctly.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="wt.f"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="wt.f"
ICAgICAgICByZWFsKjggYSgxMDI0LDEwMjQsMzg0KQogICAgICAgIHJlYWwqOCB0MSx0Mix0MCxl
bGVtZW50CiAgICAgICAgcmVhbCo4IHNlY29uZAogICAgICAgIGludGVnZXIqOCByZWNsCiAgICAg
ICAgaW50ZWdlciBpcmMKICAgICAgICByZWNsPTEwMjRkMCoxMDI0ZDAqMzg0LmQwKjguZDAKICAg
ICAgICBlbGVtZW50PTAuCiAgICAgICAgb3BlbiAodW5pdD0xMCxhY2Nl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