diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-16 23:20:59 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-16 23:20:59 +0400 |
commit | b01065f1744a4e04efe62e67b5888284a432a9a6 (patch) | |
tree | 2382837d08f0ce654db8150835a3f5b127167fdd /winsup/cygwin | |
parent | 0a7746bde66707f7db2761e3ff58dc3e31a8c15f (diff) |
* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/pthread.cc | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8f909b64d..dcc1591f6 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2013-01-16 Christopher Faylor <me.cygwin2013@cgf.cx> + + * pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute. + 2013-01-14 Antti Kantee <pooka@iki.fi> * include/pthread.h (pthread_exit): Mark as "noreturn". diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 3dddf48b1..45ef80c16 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -39,7 +39,8 @@ pthread_atfork (void (*prepare)(void), void (*parent)(void), void (*child)(void) void pthread_exit (void *value_ptr) { - return pthread::self ()->exit (value_ptr); + pthread::self ()->exit (value_ptr); + __builtin_unreachable (); /* FIXME: don't know why this is necessary */ } int |