OpenMP options and threading models

Mark Mitchell mark@codesourcery.com
Fri Oct 22 21:30:00 GMT 2004


Tom Tromey wrote:

>>>>>>"Mark" == Mark Mitchell <mark@codesourcery.com> writes:
>>>>>>            
>>>>>>
>
>  
>
>>>So, IMO, this should be the default.  Adding some other option may
>>>make sense depending on the needs of OpenMP.
>>>      
>>>
>
>Mark> I wouldn't commit the OpenMP library to working with the gthr.h
>Mark> stuff -- but it would be nice if it did, I suppose.
>
>FWIW, libgcj doesn't use the gthr.h code at all.  
>
I see.  The tradeoffs you made seem reasonable to me.

>For us the important bit is having one configuration thing to tweak
>(since most users just want to say "posix threads" or "win32 threads"
>and have that have some reasonable meaning everywhere), and having
>some kind of link-time sanity, so that if libgcc needs -lpthread, we
>don't then need some other random library for libgcj.
>  
>
I agree.

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com



More information about the Gcc mailing list