Commit b48cd47e by Krister Walfridsson Committed by Krister Walfridsson

config.gcc (*-*-netbsd*): Remove check for NetBSD versions not supporting pthreds.

2017-07-09  Krister Walfridsson  <krister.walfridsson@gmail.com>

	* config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
	supporting pthreds.
	* config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.

From-SVN: r250081
parent bec75e53
2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
* config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
supporting pthreds.
* config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
2017-07-08 Richard Sandiford <richard.sandiford@linaro.org> 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
* Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H) * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
......
...@@ -794,22 +794,8 @@ case ${target} in ...@@ -794,22 +794,8 @@ case ${target} in
gas=yes gas=yes
gnu_ld=yes gnu_ld=yes
use_gcc_stdint=wrap use_gcc_stdint=wrap
# NetBSD 2.0 and later get POSIX threads enabled by default.
# Allow them to be explicitly enabled on any other version.
case ${enable_threads} in case ${enable_threads} in
"") "" | yes | posix) thread_file='posix' ;;
case ${target} in
*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
thread_file='posix'
tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
;;
esac
;;
yes | posix)
thread_file='posix'
tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
;;
esac esac
# NetBSD 2.0 and later provide __cxa_atexit(), which we use by # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
......
...@@ -84,7 +84,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -84,7 +84,6 @@ along with GCC; see the file COPYING3. If not see
FIXME: Could eliminate the duplication here if we were allowed to FIXME: Could eliminate the duplication here if we were allowed to
use string concatenation. */ use string concatenation. */
#ifdef NETBSD_ENABLE_PTHREADS
#define NETBSD_LIB_SPEC \ #define NETBSD_LIB_SPEC \
"%{pthread: \ "%{pthread: \
%{!p: \ %{!p: \
...@@ -103,21 +102,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -103,21 +102,6 @@ along with GCC; see the file COPYING3. If not see
%{!pg:-lc}} \ %{!pg:-lc}} \
%{p:-lc_p} \ %{p:-lc_p} \
%{pg:-lc_p}}}" %{pg:-lc_p}}}"
#else
#define NETBSD_LIB_SPEC \
"%{posix: \
%{!p: \
%{!pg:-lposix}} \
%{p:-lposix_p} \
%{pg:-lposix_p}} \
%{shared:-lc} \
%{!shared: \
%{!symbolic: \
%{!p: \
%{!pg:-lc}} \
%{p:-lc_p} \
%{pg:-lc_p}}}"
#endif
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC NETBSD_LIB_SPEC #define LIB_SPEC NETBSD_LIB_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment