summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
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/gcc.c
parentff0b6b992118d179779efac155b3484d32a1cf0d (diff)
downloadgcc-008355a6ed0180b715a34bd49f67a987a78057fe.tar.gz
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/gcc.c')
-rw-r--r--gcc/gcc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 34047e64422..1ba86eebc9d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5801,10 +5801,23 @@ main (argc, argv)
if (verbose_flag)
{
int n;
+ const char *thrmod;
notice ("Configured with: %s\n", configuration_arguments);
- notice ("Thread model: %s\n", thread_model);
+#ifdef THREAD_MODEL_SPEC
+ /* We could have defined THREAD_MODEL_SPEC to "%*" by default,
+ but there's no point in doing all this processing just to get
+ thread_model back. */
+ obstack_init (&obstack);
+ do_spec_1 (THREAD_MODEL_SPEC, 0, thread_model);
+ obstack_1grow (&obstack, '\0');
+ thrmod = obstack_finish (&obstack);
+#else
+ thrmod = thread_model;
+#endif
+
+ notice ("Thread model: %s\n", thrmod);
/* compiler_version is truncated at the first space when initialized
from version string, so truncate version_string at the first space