clarification on use of --enable-threads
Nathan Sidwell
nathan@codesourcery.com
Fri Dec 3 17:18:00 GMT 2004
Aniruddha Jahagirdar wrote:
> Why does the compiler (gcc) have to know in advance what threading model is it be used on the
> given machine ?
> How does specification of the threading model affect exception handling ?
> Can't I build code that uses threading if --enable-threads is not supported on the platform I am
> using (example - alphaev56-dec-osf5.1) ?
the runtime library needs to lock certain objects to ensure correct
operation. It therefore needs to know how to do that. Static object
construction and exception handling come to mind.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list