Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gcc/config Define _REENTRANT as well as _...
details: https://anonhg.NetBSD.org/src/rev/53af2eda7f7c
branches: trunk
changeset: 543594:53af2eda7f7c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Feb 28 17:30:12 2003 +0000
description:
Define _REENTRANT as well as _PTHREADS if -pthread is specified on the
command line.
diffstat:
gnu/dist/toolchain/gcc/config/arm/netbsd-elf.h | 2 +-
gnu/dist/toolchain/gcc/config/m68k/netbsd-elf.h | 4 ++--
gnu/dist/toolchain/gcc/config/mips/netbsd.h | 2 +-
gnu/dist/toolchain/gcc/config/netbsd.h | 4 +++-
gnu/dist/toolchain/gcc/config/rs6000/netbsd.h | 1 +
gnu/dist/toolchain/gcc/config/sh/netbsd-elf-little.h | 2 +-
gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h | 2 +-
gnu/dist/toolchain/gcc/config/sparc/netbsd-elf-common.h | 2 +-
8 files changed, 11 insertions(+), 8 deletions(-)
diffs (98 lines):
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/arm/netbsd-elf.h
--- a/gnu/dist/toolchain/gcc/config/arm/netbsd-elf.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/arm/netbsd-elf.h Fri Feb 28 17:30:12 2003 +0000
@@ -162,7 +162,7 @@
#undef CPP_SPEC
#define CPP_SPEC "\
%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %(cpp_endian) \
-%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} \
+%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
"
/* Because TARGET_DEFAULT sets ARM_FLAG_SOFT_FLOAT */
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/m68k/netbsd-elf.h
--- a/gnu/dist/toolchain/gcc/config/m68k/netbsd-elf.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/m68k/netbsd-elf.h Fri Feb 28 17:30:12 2003 +0000
@@ -94,8 +94,8 @@
#undef CPP_SPEC
#define CPP_SPEC \
- "%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} %(cpp_cpu_spec) \
- %(cpp_fpu_spec)"
+ "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
+ %(cpp_cpu_spec) %(cpp_fpu_spec)"
#undef ASM_SPEC
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/mips/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/mips/netbsd.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/mips/netbsd.h Fri Feb 28 17:30:12 2003 +0000
@@ -128,7 +128,7 @@
#undef CPP_SPEC
#define CPP_SPEC \
- "%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} \
+ "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
%{!mno-abicalls:-D__ABICALLS__} \
%{mlong64:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \
%{!mlong64:-D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/netbsd.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/netbsd.h Fri Feb 28 17:30:12 2003 +0000
@@ -40,7 +40,9 @@
for the 2.95.3 STL to work. */
#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS}"
+#define CPP_SPEC \
+ "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
+ %{pthread:-D_REENTRANT -D_PTHREADS}"
/* Provide an ASM_SPEC appropriate for NetBSD. Currently we only deal
with the options for generating PIC code. */
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/rs6000/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/rs6000/netbsd.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/rs6000/netbsd.h Fri Feb 28 17:30:12 2003 +0000
@@ -69,5 +69,6 @@
#undef CPP_SPEC
#define CPP_SPEC "\
%{posix:-D_POSIX_SOURCE} \
+%{pthread:-D_REENTRANT -D_PTHREADS} \
%{msoft-float:-D_SOFT_FLOAT} \
%{mcall-sysv: -D_CALL_SYSV} %{mcall-aix: -D_CALL_AIX} %{!mcall-sysv: %{!mcall-aix: -D_CALL_SYSV}}"
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/sh/netbsd-elf-little.h
--- a/gnu/dist/toolchain/gcc/config/sh/netbsd-elf-little.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/sh/netbsd-elf-little.h Fri Feb 28 17:30:12 2003 +0000
@@ -20,7 +20,7 @@
Boston, MA 02111-1307, USA. */
#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} \
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
%{!mb:-D__LITTLE_ENDIAN__} \
%{m1:-D__sh1__} \
%{m2:-D__sh2__} \
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h
--- a/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h Fri Feb 28 17:30:12 2003 +0000
@@ -66,7 +66,7 @@
} while (0)
#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} \
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
%{ml:-D__LITTLE_ENDIAN__} \
%{m1:-D__sh1__} \
%{m2:-D__sh2__} \
diff -r e2164fb53ef0 -r 53af2eda7f7c gnu/dist/toolchain/gcc/config/sparc/netbsd-elf-common.h
--- a/gnu/dist/toolchain/gcc/config/sparc/netbsd-elf-common.h Fri Feb 28 17:30:07 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/sparc/netbsd-elf-common.h Fri Feb 28 17:30:12 2003 +0000
@@ -6,7 +6,7 @@
/* Fix up CPP_SPEC. This merges the code from <netbsd.h> and <sparc/sparc.h> */
#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_PTHREADS} \
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS} \
%(cpp_cpu) %(cpp_arch) %(cpp_endian) %(cpp_subtarget)"
#undef CPP_PREDEFINES
Home |
Main Index |
Thread Index |
Old Index