This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use __builtin_expect() within gcc_assert().
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: David Daney <ddaney at caviumnetworks dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 1 Jul 2009 18:38:39 +0200
- Subject: Re: [PATCH] Use __builtin_expect() within gcc_assert().
- References: <4A4B8ED4.6010700@caviumnetworks.com> <4E531414-D79C-4A1C-9E35-AF16ACED00B9@gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Jul 01, 2009 at 09:36:12AM -0700, Andrew Pinski wrote:
> This should not be needed if fancy_abort was marked as noreturn.
And it is:
extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
#define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
Jakub