Date: Mon, 11 Mar 2002 23:56:34 +0100 (CET) From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/35800: [PATCH] removal of -kthread in gcc man page Message-ID: <20020311225634.CC5FBEA3D@stefan.fafoe>
next in thread | raw e-mail | index | archive | help
>Number: 35800 >Category: docs >Synopsis: [PATCH] removal of -kthread in gcc man page >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 11 15:00:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Stefan Farfeleder >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD stefan.fafoe 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Mar 7 23:11:41 CET 2002 root@stefan.fafoe:/usr/obj/usr/src/sys/MORDOR i386 >Description: -kthread was dropped from gcc over a year ago but is still remaining in the man page. (http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/gcc/config/freebsd.h.diff?r1=1.29&r2=1.30) >How-To-Repeat: stefan@stefan:~ 501 (0)$ cat thread.c #include <pthread.h> int main(void) { pthread_t th; pthread_join(th, 0); return 0; } stefan@stefan:~ 502 (0)$ gcc -kthread -D_THREAD_SAFE thread.c gcc: unrecognized option `-kthread' /home/stefan/tmp/ccvI5tGE.o: In function `main': /home/stefan/tmp/ccvI5tGE.o(.text+0x10): undefined reference to `pthread_join' >Fix: Index: gcc.1 =================================================================== RCS file: /home/ncvs/src/contrib/gcc/gcc.1,v retrieving revision 1.16 diff -u -r1.16 gcc.1 --- gcc.1 1 Aug 2001 18:35:54 -0000 1.16 +++ gcc.1 11 Mar 2002 22:40:58 -0000 @@ -543,11 +543,6 @@ .BI "\-pthread" Link a user-threaded process against libc_r instead of libc. Objects linked into user-threaded processes should be compiled with -D_THREAD_SAFE. -.TP -.BI "\-kthread" -Link a kernel-threaded process against libpthread in addition to libc. -Objects linked into kernel-threaded processes should be compiled with --D_THREAD_SAFE. .SH OVERALL OPTIONS .TP .BI "\-x " "language" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020311225634.CC5FBEA3D>