libgomp routines for mingw32
François-Xavier Coudert
fxcoudert@gmail.com
Fri Jun 2 12:50:00 GMT 2006
Attached patch enables compilation of libgomp and use of -fopenmp in
the resulting compiler on i386-pc-mingw32 when pthreads-win32
(http://sourceware.org/pthreads-win32/) is present.
In libgomp, a new config/mingw32 directory is created to contain the
windows-specific time routines (which are not very elegant, but then,
is sufficient for most uses, and could be improved with better code
later).
In gcc/config/i386/mingw32.h, GOMP_SELF_SPECS is defined so that
-fopenmp doesn't imply -pthread.
Bootstrapped on i386-pc-mingw32, with both C and Fortran. Tested on
simple C and Fortran OpenMP codes, as well as a huge quantum chemistry
package.
OK for mainline?
Thanks,
FX
:ADDPATCH libgomp:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgomp-mingw32.diff
Type: text/x-patch
Size: 2711 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060602/1f6619dc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgomp-mingw32.ChangeLog
Type: application/octet-stream
Size: 242 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060602/1f6619dc/attachment.obj>
More information about the Gcc-patches
mailing list