This is the mail archive of the gcc-help@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]

-pthread support


Hi all,

I try to generate cross-compiler to support -pthread in command line with gcc-4.1.1. I build the cross-compiler targeted on or32 architecture using the following configuration.

./configure --enable-threads=posix --target=or32

I only want to use cc1 to generate assembler code to support pthread. In linux native gcc, it generated assmbler code if I type command line: gcc -pthread -O3 source.c -S assembler.s

When I use the generated cross-compiler cc1 instead of gcc, it doesn't support -pthread command.

cc1: error: unrecognized command line option "-pthread"

Could anyone give me some advice?

Thanks in advances

Best regards

Maggie


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