From stefan@fafoe.dyndns.org  Mon Mar 11 14:59:04 2002
Return-Path: <stefan@fafoe.dyndns.org>
Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237])
	by hub.freebsd.org (Postfix) with ESMTP id 9DA8E37B434
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Mar 2002 14:57:27 -0800 (PST)
Received: by stefan.fafoe (Postfix, from userid 1001)
	id CC5FBEA3D; Mon, 11 Mar 2002 23:56:34 +0100 (CET)
Message-Id: <20020311225634.CC5FBEA3D@stefan.fafoe>
Date: Mon, 11 Mar 2002 23:56:34 +0100 (CET)
From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reply-To: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] removal of -kthread in gcc man page
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35800
>Category:       docs
>Synopsis:       [PATCH] removal of -kthread in gcc man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 15:00:01 PST 2002
>Closed-Date:    Sat Feb 01 11:40:54 MST 2003
>Last-Modified:  Sat Feb 01 11:40:54 MST 2003
>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:
Responsible-Changed-From-To: freebsd-doc->obrien 
Responsible-Changed-By: murray 
Responsible-Changed-When: Tue Mar 12 04:37:43 PST 2002 
Responsible-Changed-Why:  
Obrien is still the most likely candidate for this class of simple GCC doc bug. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35800 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Sat Feb 1 11:40:43 MST 2003 
State-Changed-Why:  
Applied. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35800 
>Unformatted:
