public inbox for
help / color / mirror / Atom feed
* Re: preprocessor/10866: gcc -pthread does not define -D_REENTRANT
@ 2003-05-19 20:19 neil
  0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2003-05-19 20:19 UTC (permalink / raw)
  To: francois-xavier.kowalski, gcc-bugs, gcc-prs, jean-pierre.joannin, nobody

Synopsis: gcc -pthread does not define -D_REENTRANT

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon May 19 20:19:18 2003

^ permalink raw reply	[flat|nested] 2+ messages in thread

* preprocessor/10866: gcc -pthread does not define -D_REENTRANT
@ 2003-05-19 15:36 francois-xavier.kowalski
  0 siblings, 0 replies; 2+ messages in thread
From: francois-xavier.kowalski @ 2003-05-19 15:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jean-pierre.joannin

>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
>Release:        gcc-3.x for ia64
Linux ia64. RedHat-7.2, RHAS-2.1, Debian Sarge
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 <>
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

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-19 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 20:19 preprocessor/10866: gcc -pthread does not define -D_REENTRANT neil
  -- strict thread matches above, loose matches on Subject: below --
2003-05-19 15:36 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).