This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: clarification on use of --enable-threads
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Aniruddha Jahagirdar <ajjahagirdar at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 03 Dec 2004 17:18:01 +0000
- Subject: Re: clarification on use of --enable-threads
- Organization: Codesourcery LLC
- References: <20041203164414.78972.qmail@web12707.mail.yahoo.com>
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