[PATCH] add gcc_assert

Nathan Sidwell nathan@codesourcery.com
Fri Aug 27 13:56:00 GMT 2004


This patch implements gcc_assert & gcc_unreachable along with
a checking flag --enable-checking=assert.

--disable-checking will disable asserts, the default is to
enable them.

I'm not sure how
	# Enable some checks by default for development versions of GCC
gets turned into
	# By default, disable all checks for release versions of GCC.
for releases. Can someone clue me in please? I'll set the default
to enable the assertions on relases too.

built on i686-pc-linux-gnu with a manual assert in toplev.c.

ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: assert.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040827/99011ede/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: assert-doc.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040827/99011ede/attachment-0001.ksh>


More information about the Gcc-patches mailing list