aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-05-13 22:17:02 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-05-13 22:17:02 +0000
commit008355a6ed0180b715a34bd49f67a987a78057fe (patch)
treea3526c03074a27c32916d665bc6dcbed04376861 /gcc/config
parentff0b6b992118d179779efac155b3484d32a1cf0d (diff)
downloadgcc-008355a6ed0180b715a34bd49f67a987a78057fe.zip
gcc-008355a6ed0180b715a34bd49f67a987a78057fe.tar.gz
gcc-008355a6ed0180b715a34bd49f67a987a78057fe.tar.bz2
tm.texi (THREAD_MODEL_SPEC): Document it.
* tm.texi (THREAD_MODEL_SPEC): Document it. * gcc.c (main): Use it. * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Define it. * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Likewise. From-SVN: r42048
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/aix43.h4
-rw-r--r--gcc/config/rs6000/aix51.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/rs6000/aix43.h b/gcc/config/rs6000/aix43.h
index 3f08e77..78700ea 100644
--- a/gcc/config/rs6000/aix43.h
+++ b/gcc/config/rs6000/aix43.h
@@ -199,6 +199,10 @@ do { \
%{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
%{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}}"
+/* Since there are separate multilibs for pthreads, determine the
+ thread model based on the command-line arguments. */
+#define THREAD_MODEL_SPEC "%{pthread:posix}%{!pthread:single}"
+
/* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */
#undef PTRDIFF_TYPE
diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h
index 5875956..a72d986 100644
--- a/gcc/config/rs6000/aix51.h
+++ b/gcc/config/rs6000/aix51.h
@@ -202,6 +202,10 @@ do { \
%{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
%{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}}"
+/* Since there are separate multilibs for pthreads, determine the
+ thread model based on the command-line arguments. */
+#define THREAD_MODEL_SPEC "%{pthread:posix}%{!pthread:single}"
+
/* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
#undef PTRDIFF_TYPE