Consistently added return to pthread_exit
authorUlrich Drepper <drepper@gmail.com>
Wed, 11 Jan 2012 00:02:21 +0000 (19:02 -0500)
committerUlrich Drepper <drepper@gmail.com>
Wed, 11 Jan 2012 00:02:21 +0000 (19:02 -0500)
nptl/ChangeLog
nptl/pthreadP.h
nptl/sysdeps/pthread/pthread-functions.h

index 94ff351..fdc00d7 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-10  Ulrich Drepper  <drepper@gmail.com>
+
+       * pthreadP.h: Add noreturn to __pthread_exit.
+       * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
+
 2011-12-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
        * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
index e4a3c74..df2a478 100644 (file)
@@ -501,7 +501,7 @@ extern int __pthread_atfork (void (*prepare) (void), void (*parent) (void),
 extern pthread_t __pthread_self (void);
 extern int __pthread_equal (pthread_t thread1, pthread_t thread2);
 extern int __pthread_kill (pthread_t threadid, int signo);
-extern void __pthread_exit (void *value);
+extern void __pthread_exit (void *value) __attribute__ ((__noreturn__));
 extern int __pthread_setcanceltype (int type, int *oldtype);
 extern int __pthread_enable_asynccancel (void) attribute_hidden;
 extern void __pthread_disable_asynccancel (int oldtype)
index 15a4dff..5d77cb7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2007, 2011, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -66,7 +66,7 @@ struct pthread_functions
                                           pthread_mutex_t *,
                                           const struct timespec *);
   int (*ptr_pthread_equal) (pthread_t, pthread_t);
-  void (*ptr___pthread_exit) (void *);
+  void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
   int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);
   int (*ptr_pthread_setschedparam) (pthread_t, int,
                                    const struct sched_param *);