From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3991 invoked by alias); 19 May 2003 15:36:01 -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 3842 invoked by uid 71); 19 May 2003 15:36:01 -0000 Resent-Date: 19 May 2003 15:36:01 -0000 Resent-Message-ID: <20030519153601.3841.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jean-pierre.joannin@hp.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, francois-xavier.kowalski@hp.com Received: (qmail 2754 invoked by uid 48); 19 May 2003 15:35:34 -0000 Message-Id: <20030519153534.2753.qmail@sources.redhat.com> Date: Mon, 19 May 2003 15:36:00 -0000 From: francois-xavier.kowalski@hp.com Reply-To: francois-xavier.kowalski@hp.com To: gcc-gnats@gcc.gnu.org Cc: jean-pierre.joannin@hp.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: jean-pierre.joannin@hp.com Subject: preprocessor/10866: gcc -pthread does not define -D_REENTRANT X-SW-Source: 2003-05/txt/msg02097.txt.bz2 List-Id: >Number: 10866 >Category: preprocessor >Synopsis: gcc -pthread does not define -D_REENTRANT >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 19 15:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: francois-xavier.kowalski@hp.com >Release: gcc-3.x for ia64 >Organization: >Environment: Linux ia64. RedHat-7.2, RHAS-2.1, Debian Sarge >Description: gcc's documented "-pthread" option does not set the -D_REENTRANT pre-processor flag. the link flag -lpthread is correctly set. "-pthread" is supposed to be a front-end to any needed options / libraries needed in order to build a multi-thread program. This includes pre-processing, compilation & link. Bug reported to RedHat >How-To-Repeat: Steps to Reproduce: 1. get the attached program pthbug.c 2. compile it with gcc3 -v -pthread -Wall -Wstrict-prototypes pthbug.c 3. note that -D_REENTRANT is not defined >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="pthbug.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pthbug.c" I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8cHRocmVhZC5oPgoKdm9pZCogcnVuKCB2b2lk KiApOwoKaW50IG1haW4oIGludCBhcmdjLCBjaGFyICphcmd2W10gKQp7CiNpZm5kZWYgX1JFRU5U UkFOVAojZXJyb3IgIl9SRUVOVFJBTlQgdW5kZWZpbmVkIgojZW5kaWYKCXB0aHJlYWRfdCBjaGls ZDsKCXB0aHJlYWRfY3JlYXRlKCAmY2hpbGQsIE5VTEwsIHJ1biwgTlVMTCApOwoJZXhpdCggMCAp Owp9Cgp2b2lkKiBydW4oIHZvaWQqIHAgKQp7CglwdGhyZWFkX2V4aXQoIE5VTEwgKTsKfQo=