This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: assert infrastructure for runtime
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 23 Mar 2005 16:51:38 +0000
- Subject: Re: assert infrastructure for runtime
- Organization: Codesourcery LLC
- References: <42419463.2000204@codesourcery.com> <42419AA3.2050002@codesourcery.com>
Mark Mitchell wrote:
Yes. But, when adjusting the runtime, be careful to distinguish aborts
that are really intended to be aborts from assertions!
I'm confused. How is this different to adjusting the compiler? Each
abort is either 'we can't get here' (in which case it should be
gcc_unreachable), or 'the condition protecting this is never true' (in
which case it should be gcc_assert), or 'we've got scrogged input'
(in which case some kind of error would be appropriate -- do we want a
gcc_fatal for those?).
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk