This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Thread model: single
Marcos_David.Dione@sophia.inria.fr writes:
> more particularly I want to know whether the "single" threaded gcc
> configuration implies that C code is also less thread-safe, e.g.
> because C header files are also sensitive to it.
It depends. On some systems, the -pthread option to gcc will #define
the preprocessor symbol _REENTRANT. It may be the case that on some
systems the header files will notice that and change behaviour. I
don't think that is common.
The -pthread option does not affect gcc's code generation.
Ian