From: Brooks Moses <brooks.moses@codesourcery.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH, C++] Make Canonical ICE instead of just warn when mismatching
Date: Fri, 05 Jan 2007 03:13:00 -0000 [thread overview]
Message-ID: <459DC221.4030201@codesourcery.com> (raw)
In-Reply-To: <E349B3B3-3EE5-4227-B72A-F9169A766C6F@apple.com>
Mike Stump wrote:
> On Jan 4, 2007, at 3:42 PM, Andrew_Pinski@PlayStation.Sony.Com wrote:
>> This is just like any other internal check inside GCC we have.
>
> It could be. It need not be. In our design for this one, we choose
> to use software fault tolerance. 99.9% of the other checks, don't.
> If you want to argue that software is no place to practice fault
> tolerance, fine, do that. Feel free to cite references if you want.
> We don't have to, but, for the transition hump, I do think it is
> better to offer fault tolerance.
There's one thing that I'm not sure I'm understanding here, in trying to
follow this discussion.
Normally, on a random compiler ICE, the presence of the condition that
caused the ICE is an indication that something has happened that does
not fit our understanding of how the code works, and thus we are in a
situation where we have no reason to expect that the generated results
will be correct -- and, in fact, chances are pretty good that it will be
incorrect and buggy.
Thus, in all of those cases, there _is_ no fault tolerance, regardless
of whether the ICE is an error or a warning -- in either case, usable
results are not produced. The distinction is in how we tell the user of
this failure, and how clear we make it that the results are unusable.
An ICE and no output makes this blantantly clear; a warning and
probably-buggy output (which masquerades as a valid executable) makes it
far less clear, and it's possible that some users will overlook the
failure entirely.
In that case, an ICE and error-out is almost certainly the correct answer.
My impression from your argument is that this case is not like that;
that here we know that a failure to pass this particular internal check
will never result in invalid code. And thus a warning is appropriate
here, because the user will still get valid usable code if they ignore
the warning.
Is this a correct impression? I haven't seen any mention of this
distinction, but it seems to me that it's the only way that the argument
for a warning instead of a hard error would make sense.
- Brooks
next prev parent reply other threads:[~2007-01-05 3:13 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-04 5:30 Andrew_Pinski
2007-01-04 19:23 ` Mike Stump
2007-01-04 21:00 ` Andrew_Pinski
2007-01-04 22:26 ` Doug Gregor
2007-01-06 8:25 ` Eric Botcazou
2007-01-04 22:36 ` Mike Stump
2007-01-04 23:44 ` Andrew_Pinski
2007-01-04 23:48 ` Daniel Jacobowitz
2007-01-04 23:59 ` Andrew Pinski
2007-01-05 0:03 ` Daniel Jacobowitz
2007-01-05 0:17 ` Andrew_Pinski
2007-01-05 6:44 ` Gabriel Dos Reis
2007-01-05 14:14 ` Doug Gregor
2007-01-05 14:16 ` Richard Kenner
2007-01-05 6:41 ` Gabriel Dos Reis
2007-01-05 2:04 ` Mike Stump
2007-01-05 3:13 ` Brooks Moses [this message]
2007-01-05 14:13 ` Doug Gregor
2007-01-05 14:20 ` Richard Guenther
2007-01-05 14:35 ` Doug Gregor
2007-01-05 19:04 ` Mike Stump
2007-01-05 19:12 ` Richard Guenther
2007-01-08 5:14 ` Andrew Pinski
2007-01-05 6:35 ` Gabriel Dos Reis
2007-01-05 6:33 ` Gabriel Dos Reis
2007-01-23 3:41 ` Mark Mitchell
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=459DC221.4030201@codesourcery.com \
--to=brooks.moses@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
/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).