public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* _REENTRANT not defined when -pthread is used on alpha-linux
@ 2004-02-22 13:13 Jakub Bogusz
  2004-02-25  3:16 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Bogusz @ 2004-02-22 13:13 UTC (permalink / raw)
  To: gcc-bugs

I noticed that on alpha-linux _REENTRANT is not automatically defined
when -pthread command line option is used.
Is it a bug, or desired behaviour?

_REENTRANT is defined on most other archs (at least
{i386,amd64,ppc,sparc}-linux) through *cpp in specs file.

On alpha-linux specs contains:

| *cpp:
| %(cpp_subtarget)
| 
| *cpp_subtarget:
| -D__ELF__

while for example on i386-linux it contains:

| *cpp:
| %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}

and alpha-osf seems to have -D_REENTRANT - from gcc/config/alpha/osf.h:

| #undef CPP_SUBTARGET_SPEC
| #define CPP_SUBTARGET_SPEC \
| "%{pthread|threads:-D_REENTRANT} %{threads:-D_PTHREAD_USE_D4}"


I noticed this in gcc 3.3.3, but browsing gcc/config/alpha directory
through cvsweb I haven't noticed any changes in this area.


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/
PLD Team        http://www.pld-linux.org/


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

* Re: _REENTRANT not defined when -pthread is used on alpha-linux
  2004-02-22 13:13 _REENTRANT not defined when -pthread is used on alpha-linux Jakub Bogusz
@ 2004-02-25  3:16 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2004-02-25  3:16 UTC (permalink / raw)
  To: Jakub Bogusz; +Cc: gcc-bugs

Jakub Bogusz wrote:
> I noticed that on alpha-linux _REENTRANT is not automatically defined
> when -pthread command line option is used.
> Is it a bug, or desired behaviour?

This is probably a bug.  I suggest filing a bug report into our bugzilla 
bug database.  We do not track bug reports submitted via email, so it is 
more likely to get fixed if it is in the bug database.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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

end of thread, other threads:[~2004-02-25  3:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-22 13:13 _REENTRANT not defined when -pthread is used on alpha-linux Jakub Bogusz
2004-02-25  3:16 ` Jim Wilson

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).