aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/cppopts.texi
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2017-01-08 21:39:24 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2017-01-08 21:39:24 -0500
commitc71b316b7a012c3b14c9d9736838ffc286a73a51 (patch)
tree42735a5f23604336c74336c0c845d75bb56fc1f2 /gcc/doc/cppopts.texi
parent89b49585f0115a371ae3439d782cc3ce5e40c6af (diff)
downloadgcc-c71b316b7a012c3b14c9d9736838ffc286a73a51.zip
gcc-c71b316b7a012c3b14c9d9736838ffc286a73a51.tar.gz
gcc-c71b316b7a012c3b14c9d9736838ffc286a73a51.tar.bz2
re PR other/16519 (-pthread undocumented)
2017-01-08 Sandra Loosemore <sandra@codesourcery.com> PR other/16519 gcc/ * doc/invoke.texi (Option Summary): Move -pthread to Linker Options and Preprocessor Options. (Options for Linking): Document -pthread here.... (RS/6000 and PowerPC Options): ...not here. (Solaris 2 Options): ...or here. * doc/cppopts.texi: Document -pthread. From-SVN: r244214
Diffstat (limited to 'gcc/doc/cppopts.texi')
-rw-r--r--gcc/doc/cppopts.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi
index 80f3ba3..0497712 100644
--- a/gcc/doc/cppopts.texi
+++ b/gcc/doc/cppopts.texi
@@ -69,6 +69,13 @@ standard predefined macros remain defined.
@xref{Standard Predefined Macros}.
@end ifset
+@item -pthread
+@opindex pthread
+Define additional macros required for using the POSIX threads library.
+You should use this option consistently for both compilation and linking.
+This option is supported on GNU/Linux targets, most other Unix derivatives,
+and also on x86 Cygwin and MinGW targets.
+
@item -M
@opindex M
@cindex @command{make}