From: Roger Sayle Date: Thu, 2 Nov 2006 02:37:38 +0000 (+0000) Subject: darwin.h (CPP_SPEC): Handle -pthread, transforming it into -D_REENTRANT. X-Git-Tag: releases/gcc-4.3.0~8664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d07712df0f27a52bbf6e68c337246fab3c998a3;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 65fdde091f26..95d49ac30204 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-01 Roger Sayle + + * config/darwin.h (CPP_SPEC): Handle -pthread, transforming + it into -D_REENTRANT. + 2006-11-01 Roger Sayle * configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 35ff8c00ef04..bbb1f890dbeb 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