public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/23815] Add -byteswapio flag Date: Sat, 10 Dec 2005 20:02:00 -0000 [thread overview] Message-ID: <20051210200206.2182.qmail@sourceware.org> (raw) In-Reply-To: <bug-23815-7128@http.gcc.gnu.org/bugzilla/> ------- Comment #24 from tkoenig at gcc dot gnu dot org 2005-12-10 20:02 ------- Subject: Bug 23815 Author: tkoenig Date: Sat Dec 10 20:01:56 2005 New Revision: 108358 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108358 Log: 2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * io.c (top level): Add convert to io_tag. (resolve_tag): convert is GFC_STD_GNU. (match_open_element): Add convert. (gfc_free_open): Likewise. (gfc_resolve_open): Likewise. (gfc_free_inquire): Likewise. (match_inquire_element): Likewise. * dump-parse-tree.c (gfc_show_code_node): Add convet for open and inquire. gfortran.h: Add convert to gfc_open and gfc_inquire. * trans-io.c (gfc_trans_open): Add convert. (gfc_trans_inquire): Likewise. * ioparm.def: Add convert to open and inquire. * gfortran.texi: Document CONVERT. 2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * io/file_pos.c (unformatted_backspace): If flags.convert does not equal CONVERT_NATIVE, reverse the record marker. * io/open.c: Add convert_opt[]. (st_open): If no convert option is given, set CONVERT_NATIVE. If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have a big- or little-endian system). * io/transfer.c (unformatted_read): Remove unused attribute from arguments. If we need to reverse bytes, break up large transfers into a loop. Split complex numbers into its two parts. (unformatted_write): Likewise. (us_read): If flags.convert does not equal CONVERT_NATIVE, reverse the record marker. (next_record_w): Likewise. (reverse_memcpy): New function. * io/inquire.c (inquire_via_unit): Implement convert. * io/io.h (top level): Add enum unit_convert. Add convert to st_parameter_open and st_parameter_inquire. Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT. Increase padding for st_parameter_dt. Declare reverse_memcpy(). 2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23815 * gfortran.dg/unf_io_convert_1.f90: New test. * gfortran.dg/unf_io_convert_2.f90: New test. * gfortran.dg/unf_io_convert_3.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/unf_io_convert_1.f90 trunk/gcc/testsuite/gfortran.dg/unf_io_convert_2.f90 trunk/gcc/testsuite/gfortran.dg/unf_io_convert_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/dump-parse-tree.c trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/gfortran.texi trunk/gcc/fortran/io.c trunk/gcc/fortran/ioparm.def trunk/gcc/fortran/trans-io.c trunk/gcc/testsuite/ChangeLog trunk/libgfortran/ChangeLog trunk/libgfortran/io/file_pos.c trunk/libgfortran/io/inquire.c trunk/libgfortran/io/io.h trunk/libgfortran/io/open.c trunk/libgfortran/io/transfer.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23815
next prev parent reply other threads:[~2005-12-10 20:02 UTC|newest] Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-23815-7128@http.gcc.gnu.org/bugzilla/> 2005-10-11 13:25 ` tobi at gcc dot gnu dot org 2005-10-11 18:40 ` tkoenig at gcc dot gnu dot org 2005-10-11 19:01 ` Tobias dot Schlueter at physik dot uni-muenchen dot de 2005-10-11 19:20 ` rrr6399 at futuretek dot com 2005-10-11 19:37 ` tkoenig at gcc dot gnu dot org 2005-11-02 17:16 ` pinskia at gcc dot gnu dot org 2005-11-02 18:17 ` rrr6399 at futuretek dot com 2005-11-02 21:20 ` tkoenig at gcc dot gnu dot org 2005-11-05 22:21 ` tkoenig at gcc dot gnu dot org 2005-11-10 22:39 ` tkoenig at gcc dot gnu dot org 2005-11-10 22:53 ` tkoenig at gcc dot gnu dot org 2005-11-11 4:52 ` kargl at gcc dot gnu dot org 2005-11-11 13:26 ` rrr6399 at futuretek dot com 2005-11-11 23:53 ` tkoenig at gcc dot gnu dot org 2005-11-12 0:02 ` tkoenig at gcc dot gnu dot org 2005-11-18 21:17 ` tkoenig at gcc dot gnu dot org 2005-11-27 22:15 ` tkoenig at gcc dot gnu dot org 2005-11-27 22:27 ` tkoenig at gcc dot gnu dot org 2005-11-27 22:42 ` sgk at troutmask dot apl dot washington dot edu 2005-12-06 21:45 ` tkoenig at gcc dot gnu dot org 2005-12-10 13:09 ` tkoenig at gcc dot gnu dot org 2005-12-10 20:02 ` tkoenig at gcc dot gnu dot org [this message] 2005-12-10 20:12 ` tkoenig at gcc dot gnu dot org 2005-12-13 21:11 ` tkoenig at gcc dot gnu dot org 2006-01-09 22:53 ` tkoenig at gcc dot gnu dot org 2006-01-15 21:07 ` tkoenig at gcc dot gnu dot org 2006-01-27 20:40 ` tkoenig at gcc dot gnu dot org 2006-02-06 20:12 ` tkoenig at gcc dot gnu dot org 2006-02-08 20:14 ` tkoenig at gcc dot gnu dot org 2006-02-08 20:15 ` tkoenig at gcc dot gnu dot org 2006-02-09 15:12 ` tobi at gcc dot gnu dot org 2006-02-09 20:03 ` tkoenig at gcc dot gnu dot org 2005-09-11 5:14 [Bug fortran/23815] New: " rrr6399 at futuretek dot com 2005-09-12 14:29 ` [Bug fortran/23815] " pinskia at gcc dot gnu dot org 2005-09-12 19:22 ` falk at debian dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20051210200206.2182.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).