public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15280] New: Fortran9x commandline not accessable
@ 2004-05-04 13:00 tobias dot burnus at physik dot fu-berlin dot de
2004-05-04 13:04 ` [Bug fortran/15280] [gfrotran] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2004-05-04 13:00 UTC (permalink / raw)
To: gcc-bugs
(Tested with GNU Fortran 95 (GCC 3.5-tree-ssa 20040503 (Fedora Core Rawhide
3.5ssa-snapshot)) -- gcc-gfortran-ssa-3.5ssa-0.20040503.snapshot on SUSE 9.0)
Using the command line arguments is not possible using either the Fortran 2003
commands or f2kcli with the fortran90 file (i.e. IARGC/GETARG commands).
Expected: Either f2003 is supported directly or the IARGC/GETARG are supported.
Using the Fortan 2003 draft command line interfaces directly
(http://j3-fortran.org/doc/standing/2003/007.pdf) doesn't work since
get_command_argument etc. are not supported by gfortran.
Using http://www.winteracter.com/f2kcli/ (Fortran 90 file), one gets linking errors:
gfortran-ssa -c f2kcli.f90 -o f2kcli.o
gfortran-ssa -c average.f90 -o average.o
gfortran-ssa -o average f2kcli.o average.o
f2kcli.o(.text+0x78): In function `__f2kcli__get_command_argument':
: undefined reference to `iargc_'
f2kcli.o(.text+0xfa): In function `__f2kcli__get_command_argument':
: undefined reference to `_gfortran_getarg'
f2kcli.o(.text+0x14a): In function `__f2kcli__get_command_argument':
: undefined reference to `_gfortran_getarg'
f2kcli.o(.text+0x183): In function `__f2kcli__command_argument_count':
: undefined reference to `iargc_'
f2kcli.o(.text+0x1a0): In function `__f2kcli__get_command':
: undefined reference to `iargc_'
f2kcli.o(.text+0x1f5): In function `__f2kcli__get_command':
: undefined reference to `_gfortran_getarg'
collect2: ld returned 1 exit status
--
Summary: Fortran9x commandline not accessable
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tobias dot burnus at physik dot fu-berlin dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] [gfrotran] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
@ 2004-05-04 13:04 ` pinskia at gcc dot gnu dot org
2004-05-04 13:25 ` tobias dot burnus at physik dot fu-berlin dot de
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-04 13:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-04 13:04 -------
Confirmed, already known, see a discussion on the gfortran mailing list.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-04 13:04:21
date| |
Summary|Fortran9x commandline not |[gfrotran] Fortran9x
|accessable |commandline not accessable
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] [gfrotran] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
2004-05-04 13:04 ` [Bug fortran/15280] [gfrotran] " pinskia at gcc dot gnu dot org
@ 2004-05-04 13:25 ` tobias dot burnus at physik dot fu-berlin dot de
2004-05-27 0:15 ` [Bug fortran/15280] [gfortran] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2004-05-04 13:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobias dot burnus at physik dot fu-berlin dot de 2004-05-04 13:25 -------
Add references.
Discussion, see http://gcc.gnu.org/ml/fortran/2004-04/msg00056.html
Besides iargc/getarg, some compilers support pxfargc()/pxfgetarg(). See
http://gcc.gnu.org/ml/fortran/2004-04/msg00058.html and
http://www.cray.com/cgi-bin/swpubs/craydoc30/manpage_display.cgi?id=pxfgetarg&PL=pxfm&Rel=51&Cat=3&Vol=3f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] [gfortran] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
2004-05-04 13:04 ` [Bug fortran/15280] [gfrotran] " pinskia at gcc dot gnu dot org
2004-05-04 13:25 ` tobias dot burnus at physik dot fu-berlin dot de
@ 2004-05-27 0:15 ` pinskia at gcc dot gnu dot org
2004-06-09 17:45 ` tobi at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-27 0:15 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] [gfortran] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (2 preceding siblings ...)
2004-05-27 0:15 ` [Bug fortran/15280] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-06-09 17:45 ` tobi at gcc dot gnu dot org
2004-06-29 18:46 ` [Bug fortran/15280] " jblomqvi at cc dot hut dot fi
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-06-09 17:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-06-09 17:45 -------
PR15665 is the IARGC/GETARG part of this one. I didn't mark this a dup, because
this one here also brings up the missing F2KCLI.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (3 preceding siblings ...)
2004-06-09 17:45 ` tobi at gcc dot gnu dot org
@ 2004-06-29 18:46 ` jblomqvi at cc dot hut dot fi
2004-06-30 9:18 ` jblomqvi at cc dot hut dot fi
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-06-29 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jblomqvi at cc dot hut dot fi 2004-06-29 18:43 -------
Patch which implements the F2003 functions here:
http://gcc.gnu.org/ml/gcc-patches/2004-06/msg02526.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (4 preceding siblings ...)
2004-06-29 18:46 ` [Bug fortran/15280] " jblomqvi at cc dot hut dot fi
@ 2004-06-30 9:18 ` jblomqvi at cc dot hut dot fi
2004-07-04 17:00 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-06-30 9:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jblomqvi at cc dot hut dot fi 2004-06-30 09:16 -------
Bugfixed version of the previous patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-06/msg02580.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (5 preceding siblings ...)
2004-06-30 9:18 ` jblomqvi at cc dot hut dot fi
@ 2004-07-04 17:00 ` cvs-commit at gcc dot gnu dot org
2004-07-04 18:49 ` [Bug libfortran/15280] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-04 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-04 17:00 -------
Subject: Bug 15280
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pbrook@gcc.gnu.org 2004-07-04 17:00:12
Modified files:
gcc/fortran : ChangeLog gfortran.h intrinsic.c intrinsic.h
iresolve.c trans-decl.c trans-intrinsic.c
trans.h
libgfortran : ChangeLog libgfortran.h
libgfortran/intrinsics: args.c
Log message:
PR fortran/15280
PR fortran/15665
* gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_IARGC and
GFC_ISYM_COMMAND_ARGUMENT_COUNT.
* intrinsic.c (add_functions): Identify iargc. Add
command_argument_count.
(add_subroutines): Resolve getarg. Add get_command and
get_command_argument.
* intrinsic.h (gfc_resolve_getarg, gfc_resolve_get_command,
gfc_resolve_get_command_argument): Add prototypes.
* iresolve.c (gfc_resolve_getarg, gfc_resolve_get_command,
gfc_resolve_get_command_argument): New functions.
* trans-decl.c (gfor_fndecl_iargc): New variable.
(gfc_build_intrinsic_function_decls): Set it.
* trans-intrinsic.c (gfc_conv_intrinsic_iargc): New function.
(gfc_conv_intrinsic_function): Use it.
* trans.h (gfor_fndecl_iargc): Declare.
libgfortran/
* libgfortran.h (gfc_strlen_type): Define.
* intrinsics/args.c (getarg): Rename ...
(getarg_i4): ... to this.
(getarg_i8, get_command_argument_i4, get_command_argument_i8,
get_command_i4, get_command_i8): New functions.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.101&r2=1.102
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.c.diff?cvsroot=gcc&r1=1.10&r2=1.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.h.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/iresolve.c.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.46&r2=1.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/libgfortran.h.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/intrinsics/args.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (6 preceding siblings ...)
2004-07-04 17:00 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-04 18:49 ` pinskia at gcc dot gnu dot org
2004-07-04 18:49 ` [Bug fortran/15280] " pinskia at gcc dot gnu dot org
2004-07-10 0:29 ` [Bug libfortran/15280] " pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 18:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-04 18:49 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|fortran |libfortran
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (7 preceding siblings ...)
2004-07-04 18:49 ` [Bug libfortran/15280] " pinskia at gcc dot gnu dot org
@ 2004-07-04 18:49 ` pinskia at gcc dot gnu dot org
2004-07-10 0:29 ` [Bug libfortran/15280] " pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 18:49 UTC (permalink / raw)
To: gcc-bugs
--
Bug 15280 depends on bug 15665, which changed state.
Bug 15665 Summary: unable to compile file w/ reference to GETARG/IARGC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15665
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/15280] Fortran9x commandline not accessable
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
` (8 preceding siblings ...)
2004-07-04 18:49 ` [Bug fortran/15280] " pinskia at gcc dot gnu dot org
@ 2004-07-10 0:29 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10 0:29 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-07-10 0:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-04 13:00 [Bug fortran/15280] New: Fortran9x commandline not accessable tobias dot burnus at physik dot fu-berlin dot de
2004-05-04 13:04 ` [Bug fortran/15280] [gfrotran] " pinskia at gcc dot gnu dot org
2004-05-04 13:25 ` tobias dot burnus at physik dot fu-berlin dot de
2004-05-27 0:15 ` [Bug fortran/15280] [gfortran] " pinskia at gcc dot gnu dot org
2004-06-09 17:45 ` tobi at gcc dot gnu dot org
2004-06-29 18:46 ` [Bug fortran/15280] " jblomqvi at cc dot hut dot fi
2004-06-30 9:18 ` jblomqvi at cc dot hut dot fi
2004-07-04 17:00 ` cvs-commit at gcc dot gnu dot org
2004-07-04 18:49 ` [Bug libfortran/15280] " pinskia at gcc dot gnu dot org
2004-07-04 18:49 ` [Bug fortran/15280] " pinskia at gcc dot gnu dot org
2004-07-10 0:29 ` [Bug libfortran/15280] " pinskia 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).