From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10625 invoked by alias); 25 Feb 2004 20:21:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10559 invoked by uid 48); 25 Feb 2004 20:21:41 -0000 Date: Wed, 25 Feb 2004 20:21:00 -0000 From: "qboosh at pld-linux dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040225202136.14300.qboosh@pld-linux.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg02447.txt.bz2 List-Id: I noticed that on alpha-linux using -pthread gcc option doesn't cause cpp to have _REENTRANT defined (like it is on most archs, including {i386,amd64,ppc,sparc}-linux). I found similar report for ia64-linux in your bugzilla (PR 10865, unresolved yet). On alpha-linux specs file contains the following options for cpp: | *cpp: | %(cpp_subtarget) | | *cpp_subtarget: | -D__ELF__ while for example i386 contains: | *cpp: | %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} also on alpha-osf _REENTRANT is defined (from gcc/config/alpha/osf.h): | #undef CPP_SUBTARGET_SPEC | #define CPP_SUBTARGET_SPEC \ | "%{pthread|threads:-D_REENTRANT} %{threads:-D_PTHREAD_USE_D4}" I suppose this is a bug (though bug may be not good word - better to say accidental inconsistency between ports? as -pthread is documented only for ppc (RS/6000), but exists in most of ports...), not intentional omission? -- Summary: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: qboosh at pld-linux dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: alpha-linux GCC host triplet: alpha-linux GCC target triplet: alpha-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14300