thr.c (__objc_thread_detach_function): Do not mark as volatile but instead use the...
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 22 Jul 2004 22:20:08 +0000 (22:20 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 22 Jul 2004 22:20:08 +0000 (15:20 -0700)
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.

From-SVN: r85061

libobjc/ChangeLog
libobjc/thr.c

index b311888a3550aa0850811c9df2a5679f63c98607..b4699d195912850813b76f2f1d3b056eaa02f9fd 100644 (file)
@@ -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
index c8e8173ad8b325b8b0412bd35fa2238b89fac0a2..7420cfaf2d01261be068aa898862713eff253515 100644 (file)
@@ -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) {