public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33105]  New: F2003: Support is_iostat_end & is_iostat_eor intrinsics
@ 2007-08-18 11:51 burnus at gcc dot gnu dot org
  2007-08-18 12:56 ` [Bug fortran/33105] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-18 11:51 UTC (permalink / raw)
  To: gcc-bugs

I don't fully understand why having IOSTAT_END/EOR of the module
ISO_Fortran_ENV is not enough, but is_iostat_end and is_iostat_eor intrinsics
belong to the Fortran 2003 standard.

Test case:

! { dg-do run }
! Test for the Fortran 2003 intrinsics is_iostat_end & is_iostat_eor
!
program test_f2003
use iso_Fortran_env
implicit none
if(.not.is_iostat_end(IOSTAT_END).or.is_iostat_end(0)) call abort()
if(.not.is_iostat_eor(IOSTAT_EOR).or.is_iostat_end(0)) call abort()
end program test_f2003


-- 
           Summary: F2003: Support is_iostat_end & is_iostat_eor intrinsics
           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
OtherBugsDependingO 20585
             nThis:


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


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

* [Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics
  2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
@ 2007-08-18 12:56 ` burnus at gcc dot gnu dot org
  2007-08-20 11:48 ` fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-18 12:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2007-08-18 12:56 -------
Created an attachment (id=14072)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14072&action=view)
Diff for invoke.text (only)


-- 


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


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

* [Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics
  2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
  2007-08-18 12:56 ` [Bug fortran/33105] " burnus at gcc dot gnu dot org
@ 2007-08-20 11:48 ` fxcoudert at gcc dot gnu dot org
  2007-08-21 15:46 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-20 11:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-08-20 11:47 -------
I wasn't even aware of their existence! I'll do it (unless you want to?),
thanks for the doc patch.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-20 11:48:00
               date|                            |


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


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

* [Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics
  2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
  2007-08-18 12:56 ` [Bug fortran/33105] " burnus at gcc dot gnu dot org
  2007-08-20 11:48 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-21 15:46 ` burnus at gcc dot gnu dot org
  2007-08-29 15:16 ` fxcoudert at gcc dot gnu dot org
  2007-08-29 15:17 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-21 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-08-21 15:46 -------
> I wasn't even aware of their existence!

Me neither. I found it in the NAG f95 release notes.

> I'll do it (unless you want to?), thanks for the doc patch.

Go ahead.


-- 


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


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

* [Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics
  2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-08-21 15:46 ` burnus at gcc dot gnu dot org
@ 2007-08-29 15:16 ` fxcoudert at gcc dot gnu dot org
  2007-08-29 15:17 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-29 15:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2007-08-29 15:16 -------
Subject: Bug 33105

Author: fxcoudert
Date: Wed Aug 29 15:16:00 2007
New Revision: 127903

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127903
Log:
        PR fortran/33105

        * intrinsic.c (add_functions): Add IS_IOSTAT_END and
        IS_IOSTAT_EOR intrinsics.
        * gfortran.h (gfc_isym_id): Add GFC_ISYM_IS_IOSTAT_END and
        GFC_ISYM_IS_IOSTAT_EOR.
        * trans-intrinsic.c (gfc_conv_has_intvalue): New function.
        (gfc_conv_intrinsic_function): Call gfc_conv_has_intvalue for
        GFC_ISYM_IS_IOSTAT_END and GFC_ISYM_IS_IOSTAT_EOR.
        * intrinsic.texi: Add IS_IOSTAT_END and IS_IOSTAT_EOR.

        * gfortran.dg/is_iostat_end_eor_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/is_iostat_end_eor_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/intrinsic.texi
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics
  2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-08-29 15:16 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-29 15:17 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-29 15:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-08-29 15:16 -------
Fixed.


-- 

fxcoudert at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-08-29 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-18 11:51 [Bug fortran/33105] New: F2003: Support is_iostat_end & is_iostat_eor intrinsics burnus at gcc dot gnu dot org
2007-08-18 12:56 ` [Bug fortran/33105] " burnus at gcc dot gnu dot org
2007-08-20 11:48 ` fxcoudert at gcc dot gnu dot org
2007-08-21 15:46 ` burnus at gcc dot gnu dot org
2007-08-29 15:16 ` fxcoudert at gcc dot gnu dot org
2007-08-29 15:17 ` 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).