PATCH: Allow gcc/gthr* to be compiled by C++ as well as C

Jason Merrill jason_merrill@redhat.com
Wed Jun 6 16:33:00 GMT 2001


>>>>> "Loren" == Loren James Rittle <rittle@latour.rsch.comm.mot.com> writes:

>>> Why it is type (void*) instead of int is unknown to me.

>> Perhaps it should be

>> static int __gthread_active_ptr = !! &pthread_create;

>> then?

> No disagreement from me.  However, changing the type of
> __gthread_active_ptr is an ABI change instead of a mere bug fix to
> allow C++ compilation of the header...

I suppose so.  Well,

   (void *) !! &pthread_create

would still be more correct...

Jason



More information about the Libstdc++ mailing list