Did a search -- didn't see this...I'm porting threaded software between
solaris and linux and came across this...

bash2 :2 [EMAIL PROTECTED] 01:30:15; gcc -v
Reading specs from
/usr/local/gcc-3.4.5/lib/gcc/sparc-sun-solaris2.8/3.4.5/specs
Configured with: /usr/local/src/gnu/gcc-3.4.5/configure
--prefix=/usr/local/gcc-3.4.5 --disable-multilib --with-as=/usr/local/bin/as
--with-ld=/usr/local/bin/ld --enable-threads=posix --disable-nls
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.5
bash2 :2 [EMAIL PROTECTED] 01:30:18; gcc -pthread
gcc: unrecognized option `-pthread'
gcc: no input files
bash2 :2 [EMAIL PROTECTED] 01:30:21; gcc -pthreads
gcc: no input files


:1 [EMAIL PROTECTED] 01:30:44; gcc -v
Reading specs from /u/mleisner/lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configured with: ../../src/gcc-3.4.5/configure --prefix=/u/mleisner
--enable-__cxa_atexit --disable-nls --enable-languages=c,c++
Thread model: posix
gcc version 3.4.5
:1 [EMAIL PROTECTED] 01:30:46; gcc -pthread
gcc: no input files
:1 [EMAIL PROTECTED] 01:30:53; gcc -pthreads
gcc: unrecognized option `-pthreads'
gcc: no input files

Its different in the spec files -- its spelled -pthread in the documentation...


-- 
           Summary: sparc-solaris likes -pthreads, linux likes -pthread
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: leisner at rochester dot rr dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26683

Reply via email to