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,159 +327,163 @@ esac ...@@ -327,159 +327,163 @@ esac
# Common parts for widely ported systems. # Common parts for widely ported systems.
case ${target} in case ${target} in
*-*-linux*libc1* | *-*-linux*aout*)
# Avoid the generic linux case.
;;
*-*-linux*) *-*-linux*)
case ${target} in extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
*-*-linux*libc1* | *-*-linux*aout*) gas=yes
;; gnu_ld=yes
*) case ${enable_threads} in
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" "" | yes | posix) thread_file='posix' ;;
gas=yes gnu_ld=yes esac
case x${enable_threads} in ;;
x | xyes | xposix) thread_file='posix'
;;
esac
;;
esac
;;
*-*-gnu*) *-*-gnu*)
# On the Hurd, the setup is just about the same on # On the Hurd, the setup is just about the same on
# each different CPU. The specific machines that we # each different CPU. The specific machines that we
# support are matched above and just set $cpu_type. # support are matched above and just set $cpu_type.
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"
case ${target} in case ${target} in
alpha*) alpha*)
tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}" tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
;; ;;
i[34567]86-*-*) i[34567]86-*-*)
tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}" tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
;; ;;
esac esac
;; ;;
*-*-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
thread_file='posix' yes)
tmake_file="${tmake_file} t-openbsd-thread" thread_file='posix'
fi tmake_file="${tmake_file} t-openbsd-thread"
;; ;;
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"
gas=yes gas=yes
gnu_ld=yes gnu_ld=yes
# 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'
tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
;; ;;
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"
;; ;;
esac esac
# NetBSD 1.7 and later are set up to use GCC's crtstuff for # NetBSD 1.7 and later are set up to use GCC's crtstuff for
# ELF configurations. We will clear extra_parts in the # ELF configurations. We will clear extra_parts in the
# a.out configurations. # a.out configurations.
case ${target} in case ${target} in
*-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
;; ;;
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
# default (unless overridden by --disable-__cxa_atexit). # default (unless overridden by --disable-__cxa_atexit).
case ${target} in case ${target} in
*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
default_use_cxa_atexit=yes default_use_cxa_atexit=yes
;; ;;
esac esac
;; ;;
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
# This is the place-holder for the generic a.out configuration # This is the place-holder for the generic a.out configuration
# of FreeBSD. No actual configuration resides here since # of FreeBSD. No actual configuration resides here since
# there was only ever a bare-bones ix86 configuration for # there was only ever a bare-bones ix86 configuration for
# a.out and it exists solely in the machine-specific section. # a.out and it exists solely in the machine-specific section.
# This place-holder must exist to avoid dropping into # This place-holder must exist to avoid dropping into
# the generic ELF configuration of FreeBSD (i.e. it must be # the generic ELF configuration of FreeBSD (i.e. it must be
# ordered before that section). # ordered before that section).
;; ;;
*-*-freebsd*) *-*-freebsd*)
# This is the generic ELF configuration of FreeBSD. Later # This is the generic ELF configuration of FreeBSD. Later
# machine-specific sections may refine and add to this # machine-specific sections may refine and add to this
# configuration. # configuration.
# #
# Due to tm_file entry ordering issues that vary between cpu # Due to tm_file entry ordering issues that vary between cpu
# architectures, we only define fbsd_tm_file to allow the # architectures, we only define fbsd_tm_file to allow the
# machine-specific section to dictate the final order of all # machine-specific section to dictate the final order of all
# entries of tm_file with the minor exception that components # entries of tm_file with the minor exception that components
# of the tm_file set here will always be of the form: # of the tm_file set here will always be of the form:
# #
# freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
# #
# The machine-specific section should not tamper with this # The machine-specific section should not tamper with this
# ordering but may order all other entries of tm_file as it # ordering but may order all other entries of tm_file as it
# pleases around the provided core setting. # pleases around the provided core setting.
gas=yes gas=yes
gnu_ld=yes gnu_ld=yes
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
case ${target} in case ${target} in
*-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";; *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
*-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";; *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
*-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";; *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
*-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";; *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
*) 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"
thread_file='posix' ;;
tmake_file="${tmake_file} t-freebsd-thread" "" | yes | pthreads | posix)
# Before 5.0, FreeBSD can't bind shared libraries to -lc thread_file='posix'
# when "optionally" threaded via weak pthread_* checks. tmake_file="${tmake_file} t-freebsd-thread"
case ${target} in # Before 5.0, FreeBSD can't bind shared libraries to -lc
*-*-freebsd[34] | *-*-freebsd[34].*) # when "optionally" threaded via weak pthread_* checks.
tmake_file="${tmake_file} t-slibgcc-nolc-override";; case ${target} in
esac *-*-freebsd[34] | *-*-freebsd[34].*)
;; tmake_file="${tmake_file} t-slibgcc-nolc-override"
*) echo 'Unknown thread configuration for FreeBSD'; exit 1;; ;;
esac esac
fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" ;;
;; *)
echo 'Unknown thread configuration for FreeBSD'
exit 1
;;
esac
fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
;;
*-*-darwin*) *-*-darwin*)
tm_file="${tm_file} darwin.h" tm_file="${tm_file} darwin.h"
tm_p_file="${tm_p_file} darwin-protos.h" tm_p_file="${tm_p_file} darwin-protos.h"
tmake_file="t-darwin" tmake_file="t-darwin"
target_gtfiles="\$(srcdir)/config/darwin.c" target_gtfiles="\$(srcdir)/config/darwin.c"
c_target_objs="darwin-c.o" c_target_objs="darwin-c.o"
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*)
tmake_file=t-vxworks tmake_file=t-vxworks
tm_file="${tm_file} elfos.h svr4.h vxworks.h" tm_file="${tm_file} elfos.h svr4.h vxworks.h"
thread_file='vxworks' thread_file='vxworks'
use_collect2=yes use_collect2=yes
;; ;;
esac esac
case ${target} in case ${target} in
......
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