[PATCH] Fix PR 32915 dllimport regression

FX Coudert fxcoudert@gmail.com
Sat Jul 28 09:55:00 GMT 2007


>> 2007-07-28  Danny Smith <dannysmith@users.sourcforge.net>
>>
>> 	PR target/32915
>> 	* config/i386/i386.c (get_dllimport_decl):
>> SET_DECL_ASSEMBLER_NAME
>> 	of the generated dllimport decl.

Thanks a lot for providing a patch so quickly!

>> (As an aside why are you using a pthread_once weakref on mingw32?)

It appears on my build for mingw + pthreads-win32; libgfortran/io/ 
io.h includes gthr.h, which in turns include gthr-posix.h. The only  
functions used are then __gthread_mutex_lock and  
__gthread_mutex_unlock, to make the I/O library (and the random  
number generator) thread-safe (courtesy of Jakub Jelinek).

FX



More information about the Gcc-patches mailing list