aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/osf.h
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>1999-06-04 13:41:19 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-06-04 06:41:19 -0700
commit5c5d086f8518a95e294d8af02174f035e9588db3 (patch)
tree3390b743f50d4953dd62bf0fd8e89c0b84a5285a /gcc/config/alpha/osf.h
parent11b6d80dad4f423797ef4b9068d74758f88aa432 (diff)
downloadgcc-5c5d086f8518a95e294d8af02174f035e9588db3.zip
gcc-5c5d086f8518a95e294d8af02174f035e9588db3.tar.gz
gcc-5c5d086f8518a95e294d8af02174f035e9588db3.tar.bz2
osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
* alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads. (LIB_SPEC): Likewise. Link with -lprof1_r for -g/-pg. From-SVN: r27353
Diffstat (limited to 'gcc/config/alpha/osf.h')
-rw-r--r--gcc/config/alpha/osf.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h
index cd0669a..5054444 100644
--- a/gcc/config/alpha/osf.h
+++ b/gcc/config/alpha/osf.h
@@ -30,14 +30,19 @@ Boston, MA 02111-1307, USA. */
-Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD \
-D_SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4)"
+/* Accept DEC C flags for multithreaded programs. We use _PTHREAD_USE_D4
+ instead of PTHREAD_USE_D4 since both have the same effect and the former
+ doesn't invade the users' namespace. */
+
+#undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC \
-"%{pthread:-D_REENTRANT}"
+"%{pthread|threads:-D_REENTRANT} %{threads:-D_PTHREAD_USE_D4}"
/* Under OSF4, -p and -pg require -lprof1, and -lprof1 requires -lpdf. */
#define LIB_SPEC \
-"%{p:-lprof1 -lpdf} %{pg:-lprof1 -lpdf} %{a:-lprof2} \
- %{pthread: -lpthread -lmach -lexc} -lc"
+"%{p|pg:-lprof1%{pthread|threads:_r} -lpdf} %{a:-lprof2} \
+ %{threads: -lpthreads} %{pthread|threads: -lpthread -lmach -lexc} -lc"
/* Pass "-G 8" to ld because Alpha's CC does. Pass -O3 if we are
optimizing, -O1 if we are not. Pass -shared, -non_shared or