aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-09-25 07:00:01 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-09-25 07:00:01 +0000
commit4d6d5bb21aaf986588d42e2b260868ea462fb3bb (patch)
treee532c12bfd820951be7959c08f7ec2a0b7e04635
parenta6104fb77d74240daba6fb1fe72aad4da222d069 (diff)
downloadgcc-4d6d5bb21aaf986588d42e2b260868ea462fb3bb.zip
gcc-4d6d5bb21aaf986588d42e2b260868ea462fb3bb.tar.gz
gcc-4d6d5bb21aaf986588d42e2b260868ea462fb3bb.tar.bz2
config.gcc (widely ported systems section): Mostly alphabetize by system.
* config.gcc (widely ported systems section): Mostly alphabetize by system. Comment the case where we can't. From-SVN: r71759
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config.gcc151
2 files changed, 78 insertions, 75 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3d313a8..ab62668 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
+ * config.gcc (widely ported systems section): Mostly alphabetize
+ by system. Comment the case where we can't.
* config.gcc (widely ported systems section): Reindent and clean up.
* config.gcc: Remove some unnecessary uses of 'x' in case statements.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index f52a4d5..b053f9d 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -327,10 +327,82 @@ esac
# Common parts for widely ported systems.
case ${target} in
+*-*-darwin*)
+ tm_file="${tm_file} darwin.h"
+ tm_p_file="${tm_p_file} darwin-protos.h"
+ tmake_file="t-darwin"
+ target_gtfiles="\$(srcdir)/config/darwin.c"
+ c_target_objs="darwin-c.o"
+ cxx_target_objs="darwin-c.o"
+ extra_parts="crt2.o"
+ extra_objs="darwin.o"
+ case ${enable_threads} in
+ "" | yes | posix) thread_file='posix' ;;
+ esac
+ ;;
+*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
+ # This is the place-holder for the generic a.out configuration
+ # of FreeBSD. No actual configuration resides here since
+ # there was only ever a bare-bones ix86 configuration for
+ # a.out and it exists solely in the machine-specific section.
+ # This place-holder must exist to avoid dropping into
+ # the generic ELF configuration of FreeBSD (i.e. it must be
+ # ordered before that section).
+ ;;
+*-*-freebsd*)
+ # This is the generic ELF configuration of FreeBSD. Later
+ # machine-specific sections may refine and add to this
+ # configuration.
+ #
+ # Due to tm_file entry ordering issues that vary between cpu
+ # architectures, we only define fbsd_tm_file to allow the
+ # machine-specific section to dictate the final order of all
+ # entries of tm_file with the minor exception that components
+ # 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
+ #
+ # The machine-specific section should not tamper with this
+ # ordering but may order all other entries of tm_file as it
+ # pleases around the provided core setting.
+ gas=yes
+ gnu_ld=yes
+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
+ case ${target} in
+ *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
+ *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
+ *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
+ *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
+ *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
+ esac
+ tmake_file="t-slibgcc-elf-ver t-freebsd"
+ 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"
+ ;;
+ esac
+ ;;
+ *)
+ echo 'Unknown thread configuration for FreeBSD'
+ exit 1
+ ;;
+ esac
+ fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
+ ;;
*-*-linux*libc1* | *-*-linux*aout*)
# Avoid the generic linux case.
;;
*-*-linux*)
+ # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
gas=yes
gnu_ld=yes
@@ -359,15 +431,6 @@ case ${target} in
;;
esac
;;
-*-*-openbsd*)
- tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
- case ${enable_threads} in
- yes)
- thread_file='posix'
- tmake_file="${tmake_file} t-openbsd-thread"
- ;;
- esac
- ;;
*-*-netbsd*)
tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
gas=yes
@@ -407,76 +470,14 @@ case ${target} in
;;
esac
;;
-*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
- # This is the place-holder for the generic a.out configuration
- # of FreeBSD. No actual configuration resides here since
- # there was only ever a bare-bones ix86 configuration for
- # a.out and it exists solely in the machine-specific section.
- # This place-holder must exist to avoid dropping into
- # the generic ELF configuration of FreeBSD (i.e. it must be
- # ordered before that section).
- ;;
-*-*-freebsd*)
- # This is the generic ELF configuration of FreeBSD. Later
- # machine-specific sections may refine and add to this
- # configuration.
- #
- # Due to tm_file entry ordering issues that vary between cpu
- # architectures, we only define fbsd_tm_file to allow the
- # machine-specific section to dictate the final order of all
- # entries of tm_file with the minor exception that components
- # 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
- #
- # The machine-specific section should not tamper with this
- # ordering but may order all other entries of tm_file as it
- # pleases around the provided core setting.
- gas=yes
- gnu_ld=yes
- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
- case ${target} in
- *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
- *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
- *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
- *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
- *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
- esac
- tmake_file="t-slibgcc-elf-ver t-freebsd"
+*-*-openbsd*)
+ tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
case ${enable_threads} in
- no)
- fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
- ;;
- "" | yes | pthreads | posix)
+ yes)
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"
- ;;
- esac
- ;;
- *)
- echo 'Unknown thread configuration for FreeBSD'
- exit 1
+ tmake_file="${tmake_file} t-openbsd-thread"
;;
esac
- fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
- ;;
-*-*-darwin*)
- tm_file="${tm_file} darwin.h"
- tm_p_file="${tm_p_file} darwin-protos.h"
- tmake_file="t-darwin"
- target_gtfiles="\$(srcdir)/config/darwin.c"
- c_target_objs="darwin-c.o"
- cxx_target_objs="darwin-c.o"
- extra_parts="crt2.o"
- extra_objs="darwin.o"
- case ${enable_threads} in
- "" | yes | posix) thread_file='posix' ;;
- esac
;;
*-*-vxworks*)
tmake_file=t-vxworks