public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored
@ 2007-05-14 7:04 burnus at gcc dot gnu dot org
2007-05-14 7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-14 7:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/onlinedocs/gfortran/GFORTRAN_005fCONVERT_005fUNIT.html
Result (on x86_64/Linux):
GFORTRAN_CONVERT_UNIT set to ""
default:"LITTLE_ENDIAN"
native:"LITTLE_ENDIAN"
swap:"BIG_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"
GFORTRAN_CONVERT_UNIT set to "BIG_ENDIAN" ! same with "big_endian"
default:"LITTLE_ENDIAN"
native:"LITTLE_ENDIAN"
swap:"BIG_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"
Test program
program conv
implicit none
character(20) :: ch
CALL GET_ENVIRONMENT_VARIABLE('GFORTRAN_CONVERT_UNIT', ch)
print '(3a)', 'GFORTRAN_CONVERT_UNIT set to "',trim(ch),'"'
open(11,form='unformatted'); inquire(11,convert=ch)
print '(3a)', 'default:"',trim(ch),'"'; close(11,status='delete')
open(12,form='unformatted',convert="native")
inquire(12,convert=ch)
print '(3a)', 'native:"',trim(ch),'"'; close(12,status='delete')
open(13,form='unformatted',convert="swap")
inquire(13,convert=ch)
print '(3a)', 'swap:"',trim(ch),'"'; close(13,status='delete')
open(14,form='unformatted',convert="little_endian")
inquire(14,convert=ch)
print '(3a)', 'little_endian:"',trim(ch),'"'; close(14,status='delete')
open(15,form='unformatted',convert="big_endian")
inquire(15,convert=ch)
print '(3a)', 'big_endian:"',trim(ch),'"'; close(15,status='delete')
end program conv
--
Summary: GFORTRAN_CONVERT_UNIT is ignored
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
@ 2007-05-14 7:52 ` dominiq at lps dot ens dot fr
2007-05-14 8:38 ` burnus at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-05-14 7:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dominiq at lps dot ens dot fr 2007-05-14 08:52 -------
On PPC/darwin7 I get
[karma] f90/bug% a.out
GFORTRAN_CONVERT_UNIT set to ""
default:"BIG_ENDIAN"
native:"BIG_ENDIAN"
swap:"LITTLE_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"
[karma] f90/bug% setenv GFORTRAN_CONVERT_UNIT LITTLE_ENDIAN
[karma] f90/bug% a.out
GFORTRAN_CONVERT_UNIT set to "LITTLE_ENDIAN"
default:"BIG_ENDIAN"
native:"BIG_ENDIAN"
swap:"LITTLE_ENDIAN"
little_endian:"LITTLE_ENDIAN"
big_endian:"BIG_ENDIAN"
However I am confused about what to expect from this test:
should the default change or not?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
2007-05-14 7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
@ 2007-05-14 8:38 ` burnus at gcc dot gnu dot org
2007-05-14 19:07 ` patchapp at dberlin dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-14 8:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2007-05-14 09:38 -------
> GFORTRAN_CONVERT_UNIT set to ""
> default:"BIG_ENDIAN"
> GFORTRAN_CONVERT_UNIT set to "LITTLE_ENDIAN"
> default:"BIG_ENDIAN"
> However I am confused about what to expect from this test:
> should the default change or not?
I would expect that the default changes depending on the environment variable.
But according to the documentation all should change:
"Note that the values specified via the GFORTRAN_CONVERT_UNIT environment
variable will override the CONVERT specifier in the open statement. This is to
give control over data formats to users who do not have the source code of
their program available."
Documentation "bug": Such a statement is missing for GFORTRAN_CONVERT_UNIT
section; it is only present in the CONVERT specifier section:
http://gcc.gnu.org/onlinedocs/gfortran/CONVERT-specifier.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
2007-05-14 7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
2007-05-14 8:38 ` burnus at gcc dot gnu dot org
@ 2007-05-14 19:07 ` patchapp at dberlin dot org
2007-05-14 19:09 ` burnus at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2007-05-14 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-05-14 20:05 -------
Subject: Bug number PR31917
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00900.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-05-14 19:07 ` patchapp at dberlin dot org
@ 2007-05-14 19:09 ` burnus at gcc dot gnu dot org
2007-05-17 8:39 ` burnus at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-14 19:09 UTC (permalink / raw)
To: gcc-bugs
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-14 20:07:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-05-14 19:09 ` burnus at gcc dot gnu dot org
@ 2007-05-17 8:39 ` burnus at gcc dot gnu dot org
2007-05-22 20:04 ` [Bug fortran/31917] [4.2, 4.1 only] " tkoenig at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-17 8:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2007-05-17 09:39 -------
Subject: Bug 31917
Author: burnus
Date: Thu May 17 08:39:32 2007
New Revision: 124787
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124787
Log:
2007-05-14 Tobias Burnus <burnus@net-b.de>
PR fortran/31917
* runtime/environ.c (mark_range): Fix setting default convert unit.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/runtime/environ.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] [4.2, 4.1 only] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-05-17 8:39 ` burnus at gcc dot gnu dot org
@ 2007-05-22 20:04 ` tkoenig at gcc dot gnu dot org
2007-05-23 7:44 ` [Bug fortran/31917] [4.1 " burnus at gcc dot gnu dot org
2007-05-23 7:45 ` burnus at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-05-22 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tkoenig at gcc dot gnu dot org 2007-05-22 21:04 -------
Do you plan a backport? If not, we should close this.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.2.0 4.1.2
Known to work| |4.3.0
Summary|GFORTRAN_CONVERT_UNIT is |[4.2, 4.1 only]
|ignored |GFORTRAN_CONVERT_UNIT is
| |ignored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] [4.1 only] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-05-22 20:04 ` [Bug fortran/31917] [4.2, 4.1 only] " tkoenig at gcc dot gnu dot org
@ 2007-05-23 7:44 ` burnus at gcc dot gnu dot org
2007-05-23 7:45 ` burnus at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-23 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from burnus at gcc dot gnu dot org 2007-05-23 08:44 -------
> Do you plan a backport? If not, we should close this.
I decided to backport it in the basis that the failures are difficult to track
as there is not any feedback whether the environment are in effect or not.
Additionally, the fix is very localized.
Fixed.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.2.0 4.1.2 |4.2.0
Known to work|4.3.0 |4.3.0 4.1.2
Resolution| |FIXED
Summary|[4.2, 4.1 only] |[4.1 only]
|GFORTRAN_CONVERT_UNIT is |GFORTRAN_CONVERT_UNIT is
|ignored |ignored
Target Milestone|--- |4.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/31917] [4.1 only] GFORTRAN_CONVERT_UNIT is ignored
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-05-23 7:44 ` [Bug fortran/31917] [4.1 " burnus at gcc dot gnu dot org
@ 2007-05-23 7:45 ` burnus at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-23 7:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from burnus at gcc dot gnu dot org 2007-05-23 08:44 -------
Subject: Bug 31917
Author: burnus
Date: Wed May 23 07:44:23 2007
New Revision: 124984
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124984
Log:
2007-05-23 Tobias Burnus <burnus@net-b.de>
PR fortran/31917
Backport from trunk.
* runtime/environ.c (mark_range): Fix setting default convert unit.
Modified:
branches/gcc-4_2-branch/libgfortran/ChangeLog
branches/gcc-4_2-branch/libgfortran/runtime/environ.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-05-23 7:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14 7:04 [Bug fortran/31917] New: GFORTRAN_CONVERT_UNIT is ignored burnus at gcc dot gnu dot org
2007-05-14 7:52 ` [Bug fortran/31917] " dominiq at lps dot ens dot fr
2007-05-14 8:38 ` burnus at gcc dot gnu dot org
2007-05-14 19:07 ` patchapp at dberlin dot org
2007-05-14 19:09 ` burnus at gcc dot gnu dot org
2007-05-17 8:39 ` burnus at gcc dot gnu dot org
2007-05-22 20:04 ` [Bug fortran/31917] [4.2, 4.1 only] " tkoenig at gcc dot gnu dot org
2007-05-23 7:44 ` [Bug fortran/31917] [4.1 " burnus at gcc dot gnu dot org
2007-05-23 7:45 ` burnus 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).