This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-pthread
- From: Magnus Fromreide <magfr at lysator dot liu dot se>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 04 May 2010 07:07:32 +0200
- Subject: -pthread
I recently ended up in a discussion about the -pthread flag at work and
when looking at the documentation I noticed that it is defined onlt for
SPARC and RS/6000/PowerPC.
Additionally -fopenmp and -ftree-parallelize-loops say they are only
supported on targets where -pthread are available.
Now, on x86-linux it seems as if -pthread does something but there is no
documentation of it so I'd like to know
* What does -pthread do on x86?
* If I am to compile a threaded program am I then requiered to use
-pthread?
/MF