summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-17 14:48:58 +0000
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-17 14:48:58 +0000
commit086571a4b1555c2ad4267c8eeae1903d9344f1f3 (patch)
tree79123bffd6aa61668f108746ecd160273164f4cc /gcc/config.gcc
parentbe7f594716c65d20dac157b9d09db687f72e6c6c (diff)
downloadgcc-086571a4b1555c2ad4267c8eeae1903d9344f1f3.tar.gz
2006-03-17 Paul Brook <paul@codesourcery.com>
* doc/install.texi: Docuemnt --with-mode. * config.gcc: Add --with-mode for arm*-*-*. * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 0af55a57ad0..121315697e9 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2564,7 +2564,7 @@ case "${target}" in
;;
arm*-*-*)
- supported_defaults="arch cpu float tune fpu abi"
+ supported_defaults="arch cpu float tune fpu abi mode"
for which in cpu tune; do
# See if it matches any of the entries in arm-cores.def
eval "val=\$with_$which"
@@ -2632,6 +2632,17 @@ case "${target}" in
;;
esac
+ case "$with_mode" in
+ "" \
+ | arm | thumb )
+ #OK
+ ;;
+ *)
+ echo "Unknown mode used in --with-mode=$with_mode"
+ exit 1
+ ;;
+ esac
+
if test "x$with_arch" != x && test "x$with_cpu" != x; then
echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
fi