arm-protos.h (thumb_code, [...]): Remove.
authorChristian Bruel <christian.bruel@st.com>
Mon, 11 May 2015 10:34:41 +0000 (12:34 +0200)
committerChristian Bruel <chrbr@gcc.gnu.org>
Mon, 11 May 2015 10:34:41 +0000 (12:34 +0200)
2015-05-11  Christian Bruel  <christian.bruel@st.com>

  * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
  * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.

From-SVN: r223000

gcc/ChangeLog
gcc/config/arm/arm-protos.h
gcc/config/arm/vxworks.h

index 5deba76159c21f044f7ef7c8e1d29d53917bfab3..7d9f2bbf2c1745407f833915ac734510d660eeea 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-11  Christian Bruel  <christian.bruel@st.com>
+
+       * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
+       * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
+
 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
 
        PR rtl-optimization/66076
index bda20ca07cea0b3267ab9457bc3c9f254fa225af..0ace6583e2df4b7f995d576d37d6765ee86e8378 100644 (file)
@@ -462,12 +462,6 @@ extern int arm_tune_wbuf;
 /* Nonzero if tuning for Cortex-A9.  */
 extern int arm_tune_cortex_a9;
 
-/* Nonzero if generating Thumb instructions.  */
-extern int thumb_code;
-
-/* Nonzero if generating Thumb-1 instructions.  */
-extern int thumb1_code;
-
 /* Nonzero if we should define __THUMB_INTERWORK__ in the
    preprocessor.
    XXX This is a bit of a hack, it's intended to help work around
index 6bab39b29bd1001655997ba95d47c65ac45139f0..4b23fdf29545f034c8e9b588f6d3280e794d2855 100644 (file)
@@ -40,7 +40,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
       builtin_define ("CPU=ARMARCH5");         \
     else if (arm_arch4)                                \
       {                                                \
-       if (thumb_code)                         \
+       if (TARGET_THUMB)                       \
          builtin_define ("CPU=ARMARCH4_T");    \
        else                                    \
          builtin_define ("CPU=ARMARCH4");      \