Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, Markus Deuling <deuling@de.ibm.com>
Subject: Re: [patch] Testsuite: Fortran: 6.8 regression + gfortran updates
Date: Wed, 07 Jan 2009 08:46:00 -0000	[thread overview]
Message-ID: <20090107084640.GK3664@adacore.com> (raw)
In-Reply-To: <20090107073754.GA30904@host0.dyn.jankratochvil.net>

> I agree the indentation in general is correct.  But it is done there twice now
> - both before and after the `::' delimiter.  Indentation should happen only at
> the column 1.  For `a' variable level == 0 but for `c' and `d' level == 4:

Aha, I see. Thanks for explaining.

> gdb/
> 2009-01-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
> 	spacing, a regression from 2008-04-22.
> 
> gdb/testsuite/
> 2009-01-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.fortran/derived-type.exp: New variables int4 and real4.  Match
> 	now the output exactly, using less wildcards.  Expect also the output
> 	of gfortran-4.3.  Update for the f-valprint.c modification from
> 	2008-04-22.
> 	* gdb.fortran/subarray.exp: Expect also the output of gfortran-4.3.
> 	Remove gdb_test test names where matching the command.

Both OK, just one tiny comment.

> +# (gfortran-4.1|gfortran-4.3).  Other Fortran compilers would need other
> +# expect-strings.

Normally, we try to use full sentences in comments. The comment above
takes a little longer than it should to understand because you need to
read the code below to know what it's about.  In GDB, and I suspect
in the majority of GNU projects, the comments are place before the code
which can force us to repeat the code a bit sometimes... I tried to
make a suggestion but I don't know Fortran enough to help. Perhaps:

  /* Depending on the compiler version being used, the name of the 4-byte
     integer and real types can be printed differently.  For instance,
     gfortran-4.1 uses "int4" whereas gfortran-4.3 uses "int(kind=4)".  */

Dependending on how the information is encoded, the comment can probably
be improved further.

No need to re-request approval after the comment is expanded a bit.

Thanks,
-- 
Joel


  reply	other threads:[~2009-01-07  8:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 18:16 Jan Kratochvil
2008-12-29  3:49 ` Joel Brobecker
2009-01-06 14:05   ` Jan Kratochvil
2009-01-06 14:14     ` Jan Kratochvil
2009-01-07  5:14     ` Joel Brobecker
2009-01-07  7:38       ` Jan Kratochvil
2009-01-07  8:46         ` Joel Brobecker [this message]
2009-01-07 12:44           ` Jan Kratochvil

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=20090107084640.GK3664@adacore.com \
    --to=brobecker@adacore.com \
    --cc=deuling@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.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