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