public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux
@ 2004-02-25 20:21 qboosh at pld-linux dot org
  2004-10-11 10:58 ` [Bug target/14300] " giovannibajo at libero dot it
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: qboosh at pld-linux dot org @ 2004-02-25 20:21 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug target/14300] -pthread doesn't define _REENTRANT in preprocessor on alpha-linux
  2004-02-25 20:21 [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux qboosh at pld-linux dot org
@ 2004-10-11 10:58 ` giovannibajo at libero dot it
  2005-06-02 18:23 ` sje at cup dot hp dot com
  2005-07-29 10:58 ` david dot nospam dot hopwood at blueyonder dot co dot uk
  2 siblings, 0 replies; 5+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-11 10:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-10-11 10:58 -------
Confirmed. There is some discussion going on about this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |10865
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-11 10:58:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14300


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

* [Bug target/14300] -pthread doesn't define _REENTRANT in preprocessor on alpha-linux
  2004-02-25 20:21 [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux qboosh at pld-linux dot org
  2004-10-11 10:58 ` [Bug target/14300] " giovannibajo at libero dot it
@ 2005-06-02 18:23 ` sje at cup dot hp dot com
  2005-07-29 10:58 ` david dot nospam dot hopwood at blueyonder dot co dot uk
  2 siblings, 0 replies; 5+ messages in thread
From: sje at cup dot hp dot com @ 2005-06-02 18:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 14300 depends on bug 10865, which changed state.

Bug 10865 Summary: [ia64] gcc -pthread does not add -D_REENTRANT
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10865

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14300


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

* [Bug target/14300] -pthread doesn't define _REENTRANT in preprocessor on alpha-linux
  2004-02-25 20:21 [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux qboosh at pld-linux dot org
  2004-10-11 10:58 ` [Bug target/14300] " giovannibajo at libero dot it
  2005-06-02 18:23 ` sje at cup dot hp dot com
@ 2005-07-29 10:58 ` david dot nospam dot hopwood at blueyonder dot co dot uk
  2 siblings, 0 replies; 5+ messages in thread
From: david dot nospam dot hopwood at blueyonder dot co dot uk @ 2005-07-29 10:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From david dot nospam dot hopwood at blueyonder dot co dot uk  2005-07-29 10:56 -------
This is a special case of bug 20705.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14300


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

* [Bug target/14300] -pthread doesn't define _REENTRANT in preprocessor on alpha-linux
       [not found] <bug-14300-4@http.gcc.gnu.org/bugzilla/>
@ 2015-02-12 22:37 ` rth at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu.org @ 2015-02-12 22:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14300

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rth at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #3 from Richard Henderson <rth at gcc dot gnu.org> ---
Fixed in 2007, for gcc 4.3, r123888.


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

end of thread, other threads:[~2015-02-12 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-25 20:21 [Bug target/14300] New: -pthread doesn't define _REENTRANT in preprocessor on alpha-linux qboosh at pld-linux dot org
2004-10-11 10:58 ` [Bug target/14300] " giovannibajo at libero dot it
2005-06-02 18:23 ` sje at cup dot hp dot com
2005-07-29 10:58 ` david dot nospam dot hopwood at blueyonder dot co dot uk
     [not found] <bug-14300-4@http.gcc.gnu.org/bugzilla/>
2015-02-12 22:37 ` rth at gcc dot gnu.org

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