public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janne Blomqvist <blomqvist.janne@gmail.com>
To: Thomas Koenig <tkoenig@netcologne.de>
Cc: "fortran@gcc.gnu.org" <fortran@gcc.gnu.org>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [ patch, testsuite, fortran] Replace "call abort" by "stop n"
Date: Fri, 16 Feb 2018 08:11:00 -0000	[thread overview]
Message-ID: <CAO9iq9Ekq5c3TzJA-EgUzAaMcBpr2V_pD0VZ67hZmwK2MMNOvQ@mail.gmail.com> (raw)
In-Reply-To: <9fe99d94-89d0-41ba-e298-fb853d8bd02a@netcologne.de>

On Fri, Feb 16, 2018 at 12:30 AM, Thomas Koenig <tkoenig@netcologne.de> wrote:
> Hello world,
>
> the attached patch replaces the non-standard "call abort" by
> "STOP n", where n is a number counted up from 1 for each occurrence.
> This numbering was suggested by Neil Carlson.
>
> This makes the gfortran testsuite _much_ more standard-conforming.
> It also makes it easier to see _which_ of the numerous tests failed,
> if anything happens.
>
> I had to adjust the tree dump in a couple of places to check
> for stop instead of abort.  In the standards tests where the
> compiler was supposed to complain about call abort, I left it in :-)

Hi,

as a result of this, you should be able to remove the vast majority of
-fall-intrinsics extra options. Please do that as well.

I actually liked the usage of "call abort" in testcases, as a failing
testcase provided a backtrace with line number information and a core
dump. With this change, one now has to check on which line the
testcase failed, set a breakpoint there and run it again in the
debugger. Oh well, I guess that convenience has to be sacrificed on
the altar of standards conformance.

There's also the issue that without special tricks only the lower 8
bits of the exit code are used, and furthermore there are various
conventions. See e.g. https://stackoverflow.com/a/1535733/75652 for
what's typically the meaning on Linux. Anyway, I guess this is mostly
a theoretical quibble as I don't think we have any testcases with that
many error checks.


-- 
Janne Blomqvist

  parent reply	other threads:[~2018-02-16  8:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 22:31 Thomas Koenig
2018-02-15 23:25 ` Thomas Koenig
2018-02-15 23:37   ` Steve Kargl
2018-02-16  8:10     ` Janus Weil
2018-02-16  8:11 ` Janne Blomqvist [this message]
2018-02-17 14:14   ` Thomas Koenig
2018-02-17 22:03     ` Janus Weil
2018-02-18  0:38       ` Thomas Koenig
2018-02-18 12:31         ` Janus Weil

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=CAO9iq9Ekq5c3TzJA-EgUzAaMcBpr2V_pD0VZ67hZmwK2MMNOvQ@mail.gmail.com \
    --to=blomqvist.janne@gmail.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tkoenig@netcologne.de \
    /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).