diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2012-04-12 12:09:31 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2012-04-12 12:09:31 +0000 |
commit | 9de44a542c6cec93ab8ca1fce6c0befef88a47bf (patch) | |
tree | e7a00c736d703502e0f865f200f769533d689b85 /gnu/usr.bin/gcc | |
parent | 7edd9ade6fd2bd173f58e6c43df92e49debd819b (diff) |
Remove incorrect -pthread preprocessor define _POSIX_THREADS and replace
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
From brad@comstyle.com. okay guenther@
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/m68k/openbsd.h | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/openbsd.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/m68k/openbsd.h b/gnu/usr.bin/gcc/gcc/config/m68k/openbsd.h index 4107ddf3376..857ed0ce6f3 100644 --- a/gnu/usr.bin/gcc/gcc/config/m68k/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/m68k/openbsd.h @@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */ /* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified. This will control the use of inline 68881 insns in certain macros. */ #undef CPP_SPEC -#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}" +#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" /* Run-time target specifications. */ #define CPP_PREDEFINES "-D__unix__ -D__m68k__ -D__mc68000__ -D__mc68020__ -D__OpenBSD__ -Asystem=unix -Asystem=OpenBSD -Acpu=m68k -Amachine=m68k" diff --git a/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h b/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h index 9d10aa1b493..7f72b007f58 100644 --- a/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h @@ -35,7 +35,7 @@ Boston, MA 02111-1307, USA. */ %{!m88000:%{!m88100:%{m88110:-D__mc88110__}}} \ %{!m88000:%{!m88110:-D__mc88100__ -D__mc88100}} \ %{posix:-D_POSIX_SOURCE} \ - %{pthread:-D_POSIX_THREADS}" + %{pthread:-D_REENTRANT}" /* Layout of source language data types. */ diff --git a/gnu/usr.bin/gcc/gcc/config/openbsd.h b/gnu/usr.bin/gcc/gcc/config/openbsd.h index 0f62f77677d..4d9ba03cf48 100644 --- a/gnu/usr.bin/gcc/gcc/config/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/openbsd.h @@ -124,9 +124,9 @@ Boston, MA 02111-1307, USA. */ This two-stage defines makes it easy to pick that for targets that have subspecs. */ #ifdef CPP_CPU_SPEC -#define OBSD_CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}" +#define OBSD_CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" #else -#define OBSD_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}" +#define OBSD_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" #endif #ifndef OBSD_HAS_CORRECT_SPECS |