Commit 1eae4574 by Gerald Pfeifer Committed by Gerald Pfeifer

config.gcc: Identify FreeBSD 3.x and 4.x as unsupported.

	* config.gcc: Identify FreeBSD 3.x and 4.x as unsupported.

	* config/freebsd-spec.h (FBSD_LIB_SPEC): Only consider FreeBSD 5
	and later.

From-SVN: r260852
parent 1f161c48
2018-05-29 Gerald Pfeifer <gerald@pfeifer.com>
* config.gcc: Identify FreeBSD 3.x and 4.x as unsupported.
* config/freebsd-spec.h (FBSD_LIB_SPEC): Only consider FreeBSD 5
and later.
2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tree-dump.c (dump_node): Use splay_tree_delete_pointers. * tree-dump.c (dump_node): Use splay_tree_delete_pointers.
......
...@@ -268,7 +268,7 @@ case ${target} in ...@@ -268,7 +268,7 @@ case ${target} in
| pdp11-*-bsd \ | pdp11-*-bsd \
| sparc-hal-solaris2* \ | sparc-hal-solaris2* \
| thumb-*-* \ | thumb-*-* \
| *-*-freebsd[12] | *-*-freebsd[12].* \ | *-*-freebsd[12] | *-*-freebsd[1234].* \
| *-*-freebsd*aout* \ | *-*-freebsd*aout* \
| *-*-linux*aout* \ | *-*-linux*aout* \
| *-*-linux*coff* \ | *-*-linux*coff* \
......
...@@ -79,15 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -79,15 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define FBSD_ENDFILE_SPEC \ #define FBSD_ENDFILE_SPEC \
"%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
/* Provide a LIB_SPEC appropriate for FreeBSD as configured and as /* When threads support is requested include both -lc and the threading
required by the user-land thread model. Before __FreeBSD_version library (which assumes FreeBSD 5.x or later, __FreeBSD_version 500016
500016, select the appropriate libc, depending on whether we're to be precise).
doing profiling or need threads support. At __FreeBSD_version And make it a hard error if -pthread is provided on the command
500016 and later, when threads support is requested include both
-lc and the threading lib instead of only -lc_r. To make matters
interesting, we can't actually use __FreeBSD_version provided by
<osreldate.h> directly since it breaks cross-compiling. As a final
twist, make it a hard error if -pthread is provided on the command
line and gcc was configured with --disable-threads (this will help line and gcc was configured with --disable-threads (this will help
avoid bug reports from users complaining about threading when they avoid bug reports from users complaining about threading when they
misconfigured the gcc bootstrap but are later consulting FreeBSD misconfigured the gcc bootstrap but are later consulting FreeBSD
...@@ -106,17 +101,6 @@ is built with the --enable-threads configure-time option.} \ ...@@ -106,17 +101,6 @@ is built with the --enable-threads configure-time option.} \
%{pg: -lc_p} \ %{pg: -lc_p} \
}" }"
#else #else
#if FBSD_MAJOR < 5
#define FBSD_LIB_SPEC " \
%{!shared: \
%{!pg: \
%{!pthread:-lc} \
%{pthread:-lc_r}} \
%{pg: \
%{!pthread:-lc_p} \
%{pthread:-lc_r_p}} \
}"
#else
#define FBSD_LIB_SPEC " \ #define FBSD_LIB_SPEC " \
%{!shared: \ %{!shared: \
%{!pg: %{pthread:-lpthread} -lc} \ %{!pg: %{pthread:-lpthread} -lc} \
...@@ -126,7 +110,9 @@ is built with the --enable-threads configure-time option.} \ ...@@ -126,7 +110,9 @@ is built with the --enable-threads configure-time option.} \
%{pthread:-lpthread} -lc \ %{pthread:-lpthread} -lc \
}" }"
#endif #endif
#endif
/* To make matters interesting, we can't actually use __FreeBSD_version
provided by <osreldate.h> directly since it breaks cross-compiling. */
#if FBSD_MAJOR < 6 #if FBSD_MAJOR < 6
#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1" #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
......
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