[PATCH] Make the pointer parameter to __gthread_setspecific non-const

Richard Guenther richard.guenther@gmail.com
Sun Aug 24 00:24:00 GMT 2008


On Sat, Aug 23, 2008 at 10:58 PM, Aaron W. LaFramboise
<aaronavay62@aaronwl.com> wrote:
> Richard Guenther wrote:
>>
>> On Sat, Aug 23, 2008 at 10:16 PM, Aaron W. LaFramboise
>> <aaronavay62@aaronwl.com> wrote:
>
>>> stage2 and stage3 of the bootstrap use -Wcast-qual which warns about
>>> specifically this case.  -Wcast-qual is not in -Wall or -Wextra.
>>
>> If this isn't a problem for regular bootstrap then I don't see why we
>> should fix it.
>> There are cast-qual warnings in GCC elsewhere.
>
> This is a problem for a regular bootstrap, because regular bootstraps use
> -Wcast-qual in stage2 and stage3 for gcc/.
>
> If you do a clean bootstrap of i386-pc-mingw32 from svn or a snapshot, it
> will fail in stage2 in a file that includes gthr-win32.h.

Ok.  I'd rather use the union trick then in gthr-win32.h.

Richard.



More information about the Gcc-patches mailing list