From owner-freebsd-hackers Sun Mar 4 12:14:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.prod.itd.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id 3E83A37B719 for ; Sun, 4 Mar 2001 12:14:17 -0800 (PST) (envelope-from fmela0@sm.socccd.cc.ca.us) Received: from sm.socccd.cc.ca.us (pool0144.cvx15-bradley.dialup.earthlink.net [209.179.44.144]) by scaup.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id MAA06092; Sun, 4 Mar 2001 12:14:15 -0800 (PST) Message-ID: <3AA2A268.111D5261@sm.socccd.cc.ca.us> Date: Sun, 04 Mar 2001 12:15:36 -0800 From: Farooq Mela Reply-To: fmela0@sm.socccd.cc.ca.us X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: pthread_exit proto References: <3AA29546.7D709D6@sm.socccd.cc.ca.us> <20010304115811.Q8663@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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