From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20496 invoked by alias); 20 May 2003 07:46:47 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18902 invoked by uid 71); 20 May 2003 07:46:01 -0000 Date: Tue, 20 May 2003 07:46:00 -0000 Message-ID: <20030520074601.18901.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Francois-Xavier Kowalski Subject: Re: target/10865: [ia64] gcc -pthread does not add -D_REENTRANT Reply-To: Francois-Xavier Kowalski X-SW-Source: 2003-05/txt/msg02148.txt.bz2 List-Id: The following reply was made to PR target/10865; it has been noted by GNATS. From: Francois-Xavier Kowalski To: ljrittle@gcc.gnu.org, francois-xavier.kowalski@hp.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jean-pierre.joannin@hp.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org 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: 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 ljrittle@gcc.gnu.org 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