Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Wu Zhou <woodzltc@cn.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] New testcase to evaluate Fortran substring expression
Date: Mon, 01 Aug 2005 02:12:00 -0000	[thread overview]
Message-ID: <20050801021253.GH30901@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.63.0507151821280.21784@wks190384wss.cn.ibm.com>

On Fri, Jul 15, 2005 at 06:25:02PM +0800, Wu Zhou wrote:
> Daniel,
> 
> I made some modification to the original patch.  The changes include:       
> 
> - Don't include "arglist :  arglist, subrange".  Because I don't figure   
> out how to evaluate multi-dimension array section yet.
> 
> - Only add a new operator: OP_F90_RANGE and get the range type wrapped by
> this operator.
> 
> - Change the name of new testcase from substring to subarray.  Because    
> g77 will handle string variable as character array instead. (gfortran did
> this too)  Added four tests for substring evaluation in gdb.fortran/exprs.exp, 
> the reason is that g77 and gfortran still treat string constant as string.
> 
> Please help review this too.  Thanks a lot!

This is looks very good!  Two comments for you:

  - The magic (and undocumented) constants are not a good idea.  Rather
    than being clever with abs(), how about using an enum saying what
    sort of range it is?

  - You have a bunch of lines which are too long in eval.c; could you
    fix that, please?


-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-08-01  2:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22  4:02 Wu Zhou
2005-07-03 18:57 ` Daniel Jacobowitz
2005-07-09  3:12   ` Wu Zhou
2005-07-14 23:46     ` Daniel Jacobowitz
2005-07-15  5:25       ` Wu Zhou
2005-07-15 11:49         ` Wu Zhou
2005-08-01  2:12           ` Daniel Jacobowitz [this message]
2005-08-01  4:44             ` Wu Zhou
2005-08-01  6:23               ` Mark Kettenis
2005-08-02  3:10               ` Daniel Jacobowitz
2005-08-02 10:16                 ` Wu Zhou

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=20050801021253.GH30901@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=woodzltc@cn.ibm.com \
    /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