This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Allow gcc/gthr* to be compiled by C++ as well as C
- To: rittle at labs dot mot dot com
- Subject: Re: PATCH: Allow gcc/gthr* to be compiled by C++ as well as C
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 07 Jun 2001 00:32:17 +0100
- Cc: libstdc++ at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- References: <200105301345.f4UDjuo32030@latour.rsch.comm.mot.com><200106051514.f55FE5V17145@latour.rsch.comm.mot.com><m37kyq7xx4.fsf@prospero.cambridge.redhat.com><200106062053.f56KrPn99410@latour.rsch.comm.mot.com>
>>>>> "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