c/5226: -mthreads not available in gcc 3.0.3 but still in doc
jzago@ifaedi.insa-lyon.fr
jzago@ifaedi.insa-lyon.fr
Mon Dec 31 04:51:00 GMT 2001
>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:
More information about the Gcc-bugs
mailing list