Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Mar 2001 12:15:36 -0800
From:      Farooq Mela <fmela0@sm.socccd.cc.ca.us>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: pthread_exit proto
Message-ID:  <3AA2A268.111D5261@sm.socccd.cc.ca.us>
References:  <3AA29546.7D709D6@sm.socccd.cc.ca.us> <20010304115811.Q8663@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote:

> Is '__dead2' a GNU C thing?  or is in any sort of standard?

See /usr/include/sys/cdefs.h

__dead2 is defined to __attribute__((__noreturn__)) if a suitable
version of GCC is being used.
 
> Generally there's some resistance to putting GNU C specific
> code into the base system, is there a portable way to do this?

It's not actually gcc-specific code, its more of a hint to the compiler
to not warn about something like, main() "falling off the end" when
there is actually an exit(0); at the end of it. If GCC knows exit()
never returns to its caller it doesnt warn.

-- 
-farooq

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AA2A268.111D5261>