This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Assertify m68k
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jeffrey A Law <law at redhat dot com>
- Date: Fri, 29 Apr 2005 10:53:23 +0100
- Subject: Re: Assertify m68k
- References: <4271FAF6.7080204@codesourcery.com> <20050429092822.GA7752@redhat.com>
Richard Henderson wrote:
On Fri, Apr 29, 2005 at 10:14:30AM +0100, Nathan Sidwell wrote:
! if (addr != 0)
! {
! abort ();
! }
...
! gcc_assert (!addr);
Failed to invert the condition.
um, not this one, !(addr != 0) -> (addr == 0) -> !addr
Thanks for checking, it's not like I don't make mistakes inverting these
conditions :)
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk