aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-11-02 02:37:38 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-11-02 02:37:38 +0000
commit1d07712df0f27a52bbf6e68c337246fab3c998a3 (patch)
treef88ebda9938edad6498a91a7a646ca1f417b677a
parent68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c (diff)
downloadgcc-1d07712df0f27a52bbf6e68c337246fab3c998a3.zip
gcc-1d07712df0f27a52bbf6e68c337246fab3c998a3.tar.gz
gcc-1d07712df0f27a52bbf6e68c337246fab3c998a3.tar.bz2
darwin.h (CPP_SPEC): Handle -pthread, transforming it into -D_REENTRANT.
* config/darwin.h (CPP_SPEC): Handle -pthread, transforming it into -D_REENTRANT. From-SVN: r118408
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/darwin.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 65fdde0..95d49ac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2006-11-01 Roger Sayle <roger@eyesopen.com>
+ * config/darwin.h (CPP_SPEC): Handle -pthread, transforming
+ it into -D_REENTRANT.
+
+2006-11-01 Roger Sayle <roger@eyesopen.com>
+
* configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
whether the assembler supports taking the difference of symbols in
different sections. On x86/Solaris, GAS does but Solaris as doesn't.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 35ff8c0..bbb1f89 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -217,7 +217,8 @@ extern GTY(()) int darwin_ms_struct;
them to darwin_cpp_builtins in darwin-c.c. */
#undef CPP_SPEC
-#define CPP_SPEC "%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}"
+#define CPP_SPEC "%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}" \
+ " %{pthread:-D_REENTRANT}"
/* This is mostly a clone of the standard LINK_COMMAND_SPEC, plus
precomp, libtool, and fat build additions. Also we