install.texi: Docuemnt --with-mode.
authorPaul Brook <paul@codesourcery.com>
Fri, 17 Mar 2006 14:48:58 +0000 (14:48 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Fri, 17 Mar 2006 14:48:58 +0000 (14:48 +0000)
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".

From-SVN: r112174

gcc/ChangeLog
gcc/config.gcc
gcc/config/arm/arm.h
gcc/doc/install.texi

index 865f926a44e4fbf6b1f3a387e084ca369c6b42c4..bc62af968a22f75a4882fbcebeaac4f29100c285 100644 (file)
@@ -1,3 +1,9 @@
+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".
+
 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
 
        * sh.c (max_labelno_before_reorg): New variable.
index 0af55a57ad0e148686b28e2157e59be4740908d8..121315697e9330f318e8764434e3e895750e629b 100644 (file)
@@ -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
index e2826dce49a7cf86a48d1497e59d2316d3c98e08..6cc612b0d9ff6322229e1c84a2e09081c864368e 100644 (file)
@@ -220,7 +220,8 @@ extern GTY(()) rtx aof_pic_label;
   {"float", \
     "%{!msoft-float:%{!mhard-float:%{!mfloat-abi=*:-mfloat-abi=%(VALUE)}}}" }, \
   {"fpu", "%{!mfpu=*:-mfpu=%(VALUE)}"}, \
-  {"abi", "%{!mabi=*:-mabi=%(VALUE)}"},
+  {"abi", "%{!mabi=*:-mabi=%(VALUE)}"}, \
+  {"mode", "%{!marm:%{!mthumb:-m%(VALUE)}}"},
 
 /* Which floating point model to use.  */
 enum arm_fp_model
index 3eb837effdc1d16331fbd8f41e97f81c37057722..19201b858199750057adb5960ab53736737b9c08 100644 (file)
@@ -995,6 +995,10 @@ options and for @option{-mhard-float} or @option{-msoft-float}.  As with
 @option{--with-cpu}, which switches will be accepted and acceptable values
 of the arguments depend on the target.
 
+@item --with-mode=@var{mode}
+Specify if the compiler should default to @option{-marm} or @option{-mthumb}.
+This option is only supported on ARM targets.
+
 @item --with-divide=@var{type}
 Specify how the compiler should generate code for checking for
 division by zero.  This option is only supported on the MIPS target.