This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/5226: -mthreads not available in gcc 3.0.3 but still in doc



>Number:         5226
>Category:       c
>Synopsis:       -mthreads not available in gcc 3.0.3 but still in doc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 31 03:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jerome Zago
>Release:        3.0.3
>Organization:
>Environment:
System: AIX laursf8 3 4 005607BA4C00


	
host: powerpc-ibm-aix4.3.3.0
build: powerpc-ibm-aix4.3.3.0
target: powerpc-ibm-aix4.3.3.0
configured with: /users/ie/jza/src/orig/gcc-3.0.3/configure --prefix=/users/ie/jza --exec-prefix=/users/ie/jza/arch/laursf8 --enable-shared --enable-threads=posix
>Description:
	The -mthreads option isn't accepted by gcc anymore (i.e. it was for 
	release 2.95.3) although it's still documented in the texinfo file.
>How-To-Repeat:
	$ cat test.c
	#include <pthread.h>

	int main(int argc, char **argv)
	{
	   pthread_exit(NULL);
	   return 0;
	}
	$ make
	gcc -mthreads   -c -o test.o test.c
	cc1: Invalid option `threads'
	make: *** [test.o] Error 1
>Fix:
	Maybe the documentation should replace -mthreads by -pthread ?
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]