[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd, commited 1/6] htl: Add noreturn attribute on __pthread_exit forwa
From: |
Samuel Thibault |
Subject: |
[hurd, commited 1/6] htl: Add noreturn attribute on __pthread_exit forward |
Date: |
Sun, 14 Jun 2020 18:57:52 +0200 |
* sysdeps/htl/pthread-functions.h (__pthread_exit): Add noreturn
attribute.
(struct pthread_functions): Add noreturn attribute on ptr___pthread_exit
field.
---
sysdeps/htl/pthread-functions.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/htl/pthread-functions.h b/sysdeps/htl/pthread-functions.h
index 9cb7c2c4a5..c3480e9419 100644
--- a/sysdeps/htl/pthread-functions.h
+++ b/sysdeps/htl/pthread-functions.h
@@ -46,7 +46,7 @@ int __pthread_cond_wait (pthread_cond_t *, pthread_mutex_t *);
int __pthread_cond_timedwait (pthread_cond_t *, pthread_mutex_t *,
const struct timespec *);
int __pthread_equal (pthread_t, pthread_t);
-void __pthread_exit (void *);
+void __pthread_exit (void *) __attribute__ ((__noreturn__));
int __pthread_getschedparam (pthread_t, int *, struct sched_param *);
int __pthread_setschedparam (pthread_t, int,
const struct sched_param *);
@@ -102,7 +102,7 @@ struct pthread_functions
int (*ptr_pthread_cond_timedwait) (pthread_cond_t *, 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 *);
--
2.27.0
- [hurd,commited 0/6] Make write and pwrite64 cancellation points, Samuel Thibault, 2020/06/14
- [hurd, commited 3/6] htl: Move cleanup stack to variable shared between libc and pthread, Samuel Thibault, 2020/06/14
- [hurd,commited 4/6] htl: Fix cleanup support for IO locking, Samuel Thibault, 2020/06/14
- [hurd, commited 5/6] hurd: Make write and pwrite64 cancellation points, Samuel Thibault, 2020/06/14
- [hurd, commited 1/6] htl: Add noreturn attribute on __pthread_exit forward,
Samuel Thibault <=
- [hurd,commited 2/6] htl: initialize first and prevent from unloading, Samuel Thibault, 2020/06/14
- [hurd,commited 6/6] htl: Enable more cancellation tests, Samuel Thibault, 2020/06/14