Commit e3029773 by Nathanael Nerode

* config.gcc (widely ported systems section): Reindent and clean up.

From-SVN: r71756
parent b597bfd8
2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
* config.gcc (widely ported systems section): Reindent and clean up.
* config.gcc: Remove some unnecessary uses of 'x' in case statements.
Actually allow ep9312 as an arm --with-arch setting.
......
......@@ -327,18 +327,15 @@ esac
# Common parts for widely ported systems.
case ${target} in
*-*-linux*)
case ${target} in
*-*-linux*libc1* | *-*-linux*aout*)
*-*-linux*libc1* | *-*-linux*aout*)
# Avoid the generic linux case.
;;
*)
*-*-linux*)
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
gas=yes gnu_ld=yes
case x${enable_threads} in
x | xyes | xposix) thread_file='posix'
;;
esac
;;
gas=yes
gnu_ld=yes
case ${enable_threads} in
"" | yes | posix) thread_file='posix' ;;
esac
;;
*-*-gnu*)
......@@ -348,8 +345,8 @@ case ${target} in
tm_file="${cpu_type}/gnu.h"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
# GNU tools are the only tools.
gnu_ld=yes
gas=yes
gnu_ld=yes
# These details are the same as for Linux.
# But here we need a little extra magic.
tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
......@@ -364,10 +361,12 @@ case ${target} in
;;
*-*-openbsd*)
tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
if test x$enable_threads = xyes; then
case ${enable_threads} in
yes)
thread_file='posix'
tmake_file="${tmake_file} t-openbsd-thread"
fi
;;
esac
;;
*-*-netbsd*)
tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
......@@ -376,8 +375,8 @@ case ${target} in
# NetBSD 2.0 and later get POSIX threads enabled by default.
# Allow them to be explicitly enabled on any other version.
case x${enable_threads} in
x)
case ${enable_threads} in
"")
case ${target} in
*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
thread_file='posix'
......@@ -385,7 +384,7 @@ case ${target} in
;;
esac
;;
xyes | xposix)
yes | posix)
thread_file='posix'
tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
;;
......@@ -444,19 +443,25 @@ case ${target} in
*) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
esac
tmake_file="t-slibgcc-elf-ver t-freebsd"
case x${enable_threads} in
xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
x | xyes | xpthreads | xposix)
case ${enable_threads} in
no)
fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
;;
"" | yes | pthreads | posix)
thread_file='posix'
tmake_file="${tmake_file} t-freebsd-thread"
# Before 5.0, FreeBSD can't bind shared libraries to -lc
# when "optionally" threaded via weak pthread_* checks.
case ${target} in
*-*-freebsd[34] | *-*-freebsd[34].*)
tmake_file="${tmake_file} t-slibgcc-nolc-override";;
tmake_file="${tmake_file} t-slibgcc-nolc-override"
;;
esac
;;
*) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
*)
echo 'Unknown thread configuration for FreeBSD'
exit 1
;;
esac
fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
;;
......@@ -469,9 +474,8 @@ case ${target} in
cxx_target_objs="darwin-c.o"
extra_parts="crt2.o"
extra_objs="darwin.o"
case x${enable_threads} in
x | xyes | xposix) thread_file='posix'
;;
case ${enable_threads} in
"" | yes | posix) thread_file='posix' ;;
esac
;;
*-*-vxworks*)
......
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