diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-16 19:20:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-16 19:20:59 +0000 |
commit | b01065f1744a4e04efe62e67b5888284a432a9a6 (patch) | |
tree | 2382837d08f0ce654db8150835a3f5b127167fdd | |
parent | 0a7746bde66707f7db2761e3ff58dc3e31a8c15f (diff) | |
download | newlib-b01065f1744a4e04efe62e67b5888284a432a9a6.zip newlib-b01065f1744a4e04efe62e67b5888284a432a9a6.tar.gz newlib-b01065f1744a4e04efe62e67b5888284a432a9a6.tar.bz2 |
* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.
-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 8f909b6..dcc1591 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 3dddf48..45ef80c 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 |