public inbox for
help / color / mirror / Atom feed
* preprocessor/10865: gcc -pthread does not add -D_REENTRANT
@ 2003-05-19 15:36 francois-xavier.kowalski
  0 siblings, 0 replies; only message in thread
From: francois-xavier.kowalski @ 2003-05-19 15:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jean-pierre.joannin

>Number:         10865
>Category:       preprocessor
>Synopsis:       gcc -pthread does not add -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
>Release:        gcc-3.x
Linux ia64
when invoked with option -pthread, gcc-3.x does not add the pre-processor definition -D_REENTRANT, as explained in the documentation & as gcc-2.x was previously doing.

This behaviour is duplicated on the old gcc-3.0.4 on RedHat 7.2 / ia64, then on the same compiler on RedHat Advanced Server 2.1, then on gcc-3.2.3 for Debian Sarge / ia64.

Ref: <>

RedHat did not take this bug into account.
Steps to Reproduce:
1. get the attached program pthbug.c
2. compile it with gcc -v -pthread -Wall -Wstrict-prototypes pthbug.c
3. note that -D_REENTRANT is not defined


Content-Type: application/octet-stream; name="pthbug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="pthbug.c"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-19 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 15:36 preprocessor/10865: gcc -pthread does not add -D_REENTRANT francois-xavier.kowalski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).