From: Jakub Jelinek Date: Mon, 29 Aug 2011 21:00:39 +0000 (+0200) Subject: gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and comments... X-Git-Tag: releases/gcc-4.7.0~4140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e621f5307a89d2a533c2a644f9f168b1b97afd64;p=thirdparty%2Fgcc.git gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and comments inside macro arguments. * gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and comments inside macro arguments. From-SVN: r178258 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1b6de3fc952..277182751637 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ +2011-08-29 Jakub Jelinek + + * gthr-posix.h (__gthread_active_p): Do not use preprocessor + conditionals and comments inside macro arguments. + 20011-08-29 Artjoms Sinkarovs - Richard Guenther + Richard Guenther * tree.h (constant_boolean_node): Adjust prototype. * fold-const.c (fold_convert_loc): Move aggregate conversion diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index b1d499dcc3db..46054f6a7c21 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -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; }