From 4527e3ce890901b2fd48488ca711a3ef7fcfde1a Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 6 Feb 2007 15:09:17 +0000 Subject: [PATCH] re PR libgomp/28296 (libgomp fails to configure on Tru64 UNIX) PR libgomp/28296 Backport from mainline. * config/darwin.h (CPP_SPEC): Handle -pthread, transforming it into -D_REENTRANT. From-SVN: r121649 --- gcc/ChangeLog | 7 +++++++ gcc/config/darwin.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4788cd01ef32..61f7a579998d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-02-06 Roger Sayle + + PR libgomp/28296 + Backport from mainline. + * config/darwin.h (CPP_SPEC): Handle -pthread, transforming + it into -D_REENTRANT. + 2007-02-05 Alexandre Oliva PR debug/30189 diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 43288f758e5e..5a4d81c8d5db 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -214,7 +214,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