diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-22 22:20:08 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-22 22:20:08 +0000 |
commit | c1d30c575c6a820cc68a559b3533c3ad2dae8fd2 (patch) | |
tree | 8b03343ec172e3fbe2ddb7a1cd4baf836c73beb2 /libobjc | |
parent | 70cefd64dc369fcfdf3f9c09f440de9fa6c9b8bc (diff) | |
download | gcc-c1d30c575c6a820cc68a559b3533c3ad2dae8fd2.tar.gz |
2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
* thr.c (__objc_thread_detach_function): Do not mark as volatile
but instead use the attribute noreturn.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r-- | libobjc/ChangeLog | 5 | ||||
-rw-r--r-- | libobjc/thr.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index b311888a355..b4699d19591 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-22 Andrew Pinski <pinskia@physics.uc.edu> + + * thr.c (__objc_thread_detach_function): Do not mark as volatile + but instead use the attribute noreturn. + 2004-06-28 Zack Weinberg <zack@codesourcery.com> * encoding.c: Rename target_flags with a #define to avoid diff --git a/libobjc/thr.c b/libobjc/thr.c index c8e8173ad8b..7420cfaf2d0 100644 --- a/libobjc/thr.c +++ b/libobjc/thr.c @@ -75,8 +75,8 @@ struct __objc_thread_start_state id argument; }; -static volatile void -__objc_thread_detach_function (struct __objc_thread_start_state *istate) +static void __attribute__((noreturn)) +__objc_thread_detach_function (struct __objc_thread_start_state *istate) { /* Valid state? */ if (istate) { |