Re: target/10865: [ia64] gcc -pthread does not add -D_REENTRANT

Francois-Xavier Kowalski <[email protected]>
Newsgroups gmane.comp.gcc.prs
Message-ID <[email protected]>
The following reply was made to PR target/10865; it has been noted by GNATS.

From: Francois-Xavier Kowalski <[email protected]>
To: [email protected], [email protected],
	[email protected], [email protected],
	[email protected], [email protected], [email protected]
Cc:  
Subject: Re: target/10865: [ia64] gcc -pthread does not add -D_REENTRANT
Date: Tue, 20 May 2003 09:38:50 +0200

 Hello,
 
 [sorry for the direct replay, but I cannot find any "Edit PR" button on 
 the page below & on the entire gants/gcc web. Thanks to point me to a 
 link, so that I can copy/paste the below in the gnats database].
 
 "-pthread" is documented as an RS6000/PowerPC option only:
 
 <http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/RS-6000-and-PowerPC-Options.html#RS%2f6000%20and%20PowerPC%20Options>
 
 Quoting:
 
     |-pthread|
         Adds support for multithreading with the pthreads library. This
         option sets flags for both the preprocessor and linker.
 
 However, this option exists for every architectures I worked with 
 (HP-UX, Linux, ia32, ia64...). It is even reported as part of the gcc specs:
 
 RedHat 8.0 / i386:
 
 gcc -v
 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
 Thread model: *posix*
 gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
   
 
 Debian Sarge / ia64:
 
  gcc-3.2 -v
 Reading specs from /usr/lib/gcc-lib/ia64-linux/3.2.3/specs
 Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc ia64-linux
 Thread model: *posix*
 gcc version 3.2.3 20030309 (Debian prerelease)
   
 
 So I have always assumed (as it always worked) that the description for 
 RS6000/PowerPC was Ok for every supported architecture.
 
 What I can observe in the current GCC I am using is that the linker 
 option (-lpthread) is set, but not the pre-compiler option
 
 -- FiX
 
 [email protected] wrote:
 
 >Synopsis: [ia64] gcc -pthread does not add -D_REENTRANT
 >
 >State-Changed-From-To: open->feedback
 >State-Changed-By: ljrittle
 >State-Changed-When: Tue May 20 00:19:36 2003
 >State-Changed-Why:
 >    [Before responding, I checked the gcc documentation that shipped
 >    with both FSF gcc 3.2.2 and FSF gcc 3.3.]
 >    
 >    Question: To which documentation are you referring?  To my knowledge, there was no documentation shipped with FSF gcc
 >    3.2.X or FSF gcc 3.3 which claims that -D_REENTRANT is added
 >    when -pthread is present.  It is true that some ports do indeed
 >    add it under that condition however I can find no documentation
 >    on the matter.
 >
 >http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10865
 >  
 >
 
 -- 
 Francois-Xavier "FiX" KOWALSKI     /_ __    Tel: +33 (0)4 76 14 63 27
 OpenCall Business Unit -- OCBU    / //_/    Fax: +33 (0)4 76 14 43 23
 Signalling Products                 /       HP Telnet: 779-6327
 http://www.hp.com/go/opencall   i n v e n t
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.