public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30933]  New: intrinsic: EXIT
@ 2007-02-22 23:36 dfranke at gcc dot gnu dot org
  2007-02-22 23:40 ` [Bug fortran/30933] " dfranke at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-22 23:36 UTC (permalink / raw)
  To: gcc-bugs

> CALL exit(status=i)
The documented argument name "status" is rejected (but "count" is allowed):

gcc/fortran/intrinsic.c:2458-2460:
  add_sym_1s ("exit", 0, BT_UNKNOWN, 0, GFC_STD_GNU,
              gfc_check_exit, NULL, gfc_resolve_exit,
              c, BT_INTEGER, di, OPTIONAL);


-- 
           Summary: intrinsic: EXIT
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
  2007-02-22 23:40 ` [Bug fortran/30933] " dfranke at gcc dot gnu dot org
@ 2007-02-22 23:40 ` dfranke at gcc dot gnu dot org
  2007-02-23  0:21 ` dfranke at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-22 23:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2007-02-22 23:40 -------
Created an attachment (id=13094)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13094&action=view)
testcase (dg-do link)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
@ 2007-02-22 23:40 ` dfranke at gcc dot gnu dot org
  2007-02-22 23:40 ` dfranke at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-22 23:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dfranke at gcc dot gnu dot org  2007-02-22 23:40 -------
Created an attachment (id=13093)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13093&action=view)
testcase (dg-do compile)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
  2007-02-22 23:40 ` [Bug fortran/30933] " dfranke at gcc dot gnu dot org
  2007-02-22 23:40 ` dfranke at gcc dot gnu dot org
@ 2007-02-23  0:21 ` dfranke at gcc dot gnu dot org
  2007-02-23  0:38 ` dfranke at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-23  0:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dfranke at gcc dot gnu dot org  2007-02-23 00:21 -------
A note on the testcase: gfortran seems to resolve EXIT only once. 
If
  CALL exit()
  CALL exit(int_1)
gfortran happily compiles and links.

If 
  CALL exit(int_1)
  CALL exit()
then
/tmp/ccuE9OGi.o: In function `MAIN__':
subroutine-exit-link.f90:(.text+0x31): undefined reference to
`_gfortran_exit_i1'
collect2: ld returned 1 exit status

The same goes for `_gfortran_exit_i2':
if
  CALL exit(int_1)
  CALL exit(int_2)
then only `_gfortran_exit_i1' is missing -- and vice versa.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-02-23  0:21 ` dfranke at gcc dot gnu dot org
@ 2007-02-23  0:38 ` dfranke at gcc dot gnu dot org
  2007-02-23 16:45 ` burnus at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-23  0:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dfranke at gcc dot gnu dot org  2007-02-23 00:38 -------
The documentation states:

> Arguments:
>   STATUS   The type of the argument shall be INTEGER(*). 

but arguments of kind INTEGER(kind=1) and INTEGER(kind=2) may lead to
unresolved symbols (see also comment #3).


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-02-23  0:38 ` dfranke at gcc dot gnu dot org
@ 2007-02-23 16:45 ` burnus at gcc dot gnu dot org
  2007-02-23 18:05 ` patchapp at dberlin dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-02-23 16:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
         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-02-23 16:45:28
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-02-23 16:45 ` burnus at gcc dot gnu dot org
@ 2007-02-23 18:05 ` patchapp at dberlin dot org
  2007-03-14  4:45 ` brooks at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2007-02-23 18:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from patchapp at dberlin dot org  2007-02-23 18:05 -------
Subject: Bug number PR30933

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-02/msg01902.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-23 18:05 ` patchapp at dberlin dot org
@ 2007-03-14  4:45 ` brooks at gcc dot gnu dot org
  2007-03-14  4:47 ` brooks at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-14  4:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from brooks at gcc dot gnu dot org  2007-03-14 04:45 -------
The above commit fixes the documentation to document that only default integer
arguments are allowed.

I left the argument name as "STATUS", because "COUNT" seems absurd and in this
case I think it's clear that we want to fix the implementation.


-- 

brooks at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brooks at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-03-14  4:45 ` brooks at gcc dot gnu dot org
@ 2007-03-14  4:47 ` brooks at gcc dot gnu dot org
  2007-03-31 17:34 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-14  4:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from brooks at gcc dot gnu dot org  2007-03-14 04:47 -------
The "above commit" is obviously missing; I typoed the PR number when making it.
 Here's the info:

Author: brooks
Date: Wed Mar 14 04:38:47 2007
New Revision: 122905

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122905
Log:
PR fortran/30922
PR fortran/30948
PR fortran/30953
* intrinsics.texi (CHDIR): Fix argument names, note
that STATUS must be a default integer.
(CTIME): Fix argument names, note that RESULT must
be a default integer.
(EXIT): Note that STATUS must be a default integer.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.texi


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-03-14  4:47 ` brooks at gcc dot gnu dot org
@ 2007-03-31 17:34 ` burnus at gcc dot gnu dot org
  2007-08-06 22:29 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-31 17:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from burnus at gcc dot gnu dot org  2007-03-31 18:34 -------
Author: burnus
Date: Sat Mar 31 18:30:11 2007
New Revision: 123385

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123385
Log:
2007-03-31  Tobias Burnus  <burnus@net-b.de>

       * intrinsic.c (add_functions): Fix name of dummy argument
         for new_line and exit intrinsic.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.c

----

The integer(1,2,16?) support (or rejection) needs still to be done.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|burnus at gcc dot gnu dot   |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-03-31 17:34 ` burnus at gcc dot gnu dot org
@ 2007-08-06 22:29 ` fxcoudert at gcc dot gnu dot org
  2007-08-06 22:30 ` fxcoudert at gcc dot gnu dot org
  2007-08-06 22:44 ` fxcoudert at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from fxcoudert at gcc dot gnu dot org  2007-08-06 22:29 -------
Subject: Bug 30933

Author: fxcoudert
Date: Mon Aug  6 22:29:24 2007
New Revision: 127256

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127256
Log:
        PR fortran/30933
        * iresolve.c (gfc_resolve_exit): Convert argument to default
        integer kind.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/iresolve.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2007-08-06 22:29 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-06 22:30 ` fxcoudert at gcc dot gnu dot org
  2007-08-06 22:44 ` fxcoudert at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from fxcoudert at gcc dot gnu dot org  2007-08-06 22:29 -------
Last bit fixed.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/30933] intrinsic: EXIT
  2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-08-06 22:30 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-06 22:44 ` fxcoudert at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06 22:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from fxcoudert at gcc dot gnu dot org  2007-08-06 22:44 -------
Subject: Bug 30933

Author: fxcoudert
Date: Mon Aug  6 22:44:27 2007
New Revision: 127257

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127257
Log:
        PR fortran/30933
        * intrinsic.c (add_functions): Fix name of argument to CHDIR.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-08-06 22:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 23:36 [Bug fortran/30933] New: intrinsic: EXIT dfranke at gcc dot gnu dot org
2007-02-22 23:40 ` [Bug fortran/30933] " dfranke at gcc dot gnu dot org
2007-02-22 23:40 ` dfranke at gcc dot gnu dot org
2007-02-23  0:21 ` dfranke at gcc dot gnu dot org
2007-02-23  0:38 ` dfranke at gcc dot gnu dot org
2007-02-23 16:45 ` burnus at gcc dot gnu dot org
2007-02-23 18:05 ` patchapp at dberlin dot org
2007-03-14  4:45 ` brooks at gcc dot gnu dot org
2007-03-14  4:47 ` brooks at gcc dot gnu dot org
2007-03-31 17:34 ` burnus at gcc dot gnu dot org
2007-08-06 22:29 ` fxcoudert at gcc dot gnu dot org
2007-08-06 22:30 ` fxcoudert at gcc dot gnu dot org
2007-08-06 22:44 ` fxcoudert 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).