http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #42 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-04
12:45:15 UTC ---
Well, perhaps something like:
#ifdef __cplusplus
extern "C++" int __REDIRECT_NTH (pthread_create, (pthread_t *__restrict
__newthread, const pthread_attr_t *__restrict __attr,
void *(*__start_routine) (void *),
void *__restrict __arg) __nonnull ((1, 3)), pthread_create);
#endif
(for glibc) could do the trick (and similarly for qsort and other C functions
that take callbacks?), still I agree this would be terribly annoying for
everybody.
At least this shouldn't be considered for GCC 4.7 at this point.