This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix assert.h on darwin (before 8.0)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 6 Nov 2004 23:46:29 +0000 (UTC)
- Subject: Re: Fix assert.h on darwin (before 8.0)
- References: <B6835B04-304C-11D9-9E21-000A95D692F4@physics.uc.edu>
On Sat, 6 Nov 2004, Andrew Pinski wrote:
> Darwin (before 8) has a very messed up assert.h and uses __eprintf
> which is very wrong. This patch fixes that by adding an assert.h
> which does not use __eprintf at all.
Your assert.h doesn't seem to print either the text of the asserted
expression or the name of the current function in the message, though C99
requires both.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)