]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and comments...
authorJakub Jelinek <jakub@redhat.com>
Mon, 29 Aug 2011 21:00:39 +0000 (23:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 29 Aug 2011 21:00:39 +0000 (23:00 +0200)
* gthr-posix.h (__gthread_active_p): Do not use preprocessor
conditionals and comments inside macro arguments.

From-SVN: r178258

gcc/ChangeLog
gcc/gthr-posix.h

index c1b6de3fc95215b3946a9fc8ce0ae211883d0f36..277182751637a6d6019e032d2c34a998acae2869 100644 (file)
@@ -1,5 +1,10 @@
+2011-08-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * gthr-posix.h (__gthread_active_p): Do not use preprocessor
+       conditionals and comments inside macro arguments.
+
 20011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
-       Richard Guenther  <rguenther@suse.de>
+            Richard Guenther  <rguenther@suse.de>
 
        * tree.h (constant_boolean_node): Adjust prototype.
        * fold-const.c (fold_convert_loc): Move aggregate conversion
index b1d499dcc3db555fd3c9ad7683fdd84d4c4d23a2..46054f6a7c212a054879952932d8e598da686674 100644 (file)
@@ -244,16 +244,15 @@ __gthread_active_p (void)
 static inline int
 __gthread_active_p (void)
 {
-  static void *const __gthread_active_ptr
-    = __extension__ (void *) &__gthrw_(
 /* Android's C library does not provide pthread_cancel, check for
    `pthread_create' instead.  */
 #ifndef __BIONIC__
-                                      pthread_cancel
+  static void *const __gthread_active_ptr
+    = __extension__ (void *) &__gthrw_(pthread_cancel);
 #else
-                                      pthread_create
+  static void *const __gthread_active_ptr
+    = __extension__ (void *) &__gthrw_(pthread_create);
 #endif
-                                      );
   return __gthread_active_ptr != 0;
 }