public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
To: Jerry DeLisle <jvdelisle@verizon.net>,
	fortran@gcc.gnu.org, 	gcc-patches@gcc.gnu.org
Subject: Re: [patch, fortran]PR25829 Add support for F2003 I/O features
Date: Sat, 05 Apr 2008 12:21:00 -0000	[thread overview]
Message-ID: <20080405113248.GA30275@physik.fu-berlin.de> (raw)

Hi Jerry,

> The patch is getting too big so i do not want to add any more until we
> get this in trunk,
> With that said, I have attached the latest patch and 7 new test cases.
> OK for trunk.

I think the patch is OK.

I added some more items below, but they can be fixed later.
(a), (b) and (c) are relatively simply, (d) needs more effort.
And (e) can be postponed or included in the (a) to (c) patch.

> I forgot a couple of things.  I still need to version the new symbol in
> gfortran,map and i still need to test for ABI breakage.  I will do this
> while the patch is being reviewed and report back here.

Thanks for remembering this.


a) First test case. The error message of sunf95 is clear and correct
(see C926) (it shows also another error message which is wrong...):

write(10,'(10f8.3)',  decimal="comma", id=j) a
                                          ^
"test.f90", Line = 13, Column = 43: ERROR: This ID= specifier requires
ASYNCHRONOUS='YES' specifier as well.

Expected: A correct test case and an error message
(Don't forget the asynchronous == 'Yes' check.)



b) The following is invalid as asynchronous= in data-transfer statements (!)
requires an initialization expression; see R913. (In OPEN it does not.)

character(len=10) :: a = 'No'
WRITE(*,*,asynchronous=a) ! invalid
END

The reason is to allow for a faster implemenation as this allows to
generate different code in the front end for READ/WRITE with
and without asynchronous.


c)   write(6,*,delim='quote') 'Hello'
Should print  "Hello"  (with quotes) and not Hello



d) INQUIRE has some problems (-> Follow up patch)


Not recognized:  asynchronous=str, decimal=str, encoding=str,
                 pending=<logical>, round=str, sign=str, size=<integer>

inquire(99,id=j)
-> not recognized, but also invalid without pending=<logical>

!-----------------------------------------------------------
implicit none
character(len=10) :: a,b,c,d,e,f
logical :: log
integer :: id,j
inquire(99,asynchronous=a,blank=b,decimal=c,encoding=d,id=id,pending=log, &
           round=E,sign=f,size=j)
print *, 'asynchronous=',a,'  blank=',b,'  decimal=',c,'  encoding=',d, &
         '  id=',id, '  pending=',log,'  round=',E,'  sign=',f,'
size=',j
! Expected: all strings 'UNDEFINED' and pending = .false.
END
!-----------------------------------------------------------



e) rounding edit decriptors (ru, rd, etc.) are not recognized by neither
the back nor the front end. Maybe one could recognize them and error out
with a not-implemented message?

Tobias

             reply	other threads:[~2008-04-05 11:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-05 12:21 Tobias Burnus [this message]
2008-04-05 16:30 ` Jerry DeLisle
2008-04-05 17:31   ` NightStrike
2008-04-05 17:58     ` Jerry DeLisle
     [not found]   ` <47F7FE02.3070407@net-b.de>
     [not found]     ` <1207454811.15229.2.camel@lenova.localdomain>
2008-04-06 10:00       ` Tobias Burnus
  -- strict thread matches above, loose matches on Subject: below --
2008-04-01 21:10 Tobias Burnus
2008-04-04  4:53 ` Jerry DeLisle
2008-03-29 17:45 Tobias Burnus
2008-03-29 19:57 ` Jerry DeLisle
2008-04-01  4:31 ` Jerry DeLisle
2008-04-01 11:47   ` Tobias Burnus
2008-04-01 14:15     ` Jerry DeLisle
2008-04-01 14:15     ` Jerry DeLisle
     [not found]       ` <47F494AC.30003@net-b.de>
2008-04-05  9:24         ` Jerry DeLisle
2008-04-05  9:27           ` Jerry DeLisle
2008-03-16 21:48 Jerry DeLisle
2008-03-16 22:03 ` FX Coudert
2008-03-17  0:25   ` Jerry DeLisle
2008-03-17  7:52     ` Janne Blomqvist

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=20080405113248.GA30275@physik.fu-berlin.de \
    --to=tobias.burnus@physik.fu-berlin.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jvdelisle@verizon.net \
    /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: link
Be 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).