[arm] Rework arm-common to use new feature bits.
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 15 Dec 2016 15:49:13 +0000 (15:49 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 15 Dec 2016 15:49:13 +0000 (15:49 +0000)
commit03d222fab6188f76cd734470d53061f8b5940186
treecbea8a3df69757818781cf5341197b7f37ac1572
parent6c466c7c6f4b58c7ee2b45bf448ec20bb715f4bc
[arm] Rework arm-common to use new feature bits.

This converts the recently added implicit -mthumb support code to use
the new data structures.  Since we have a very simple query and no
initialized copies of the sbitmaps, for now we simply scan the list of
features to look for the one of interest.

* arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
Initialize it.
    (arm_arch_core_flag): Delete flags field.
     (arm_arch_core_flags): Don't initialize flags field.
  * common/config/arm/arm-common.c (check_isa_bits_for): New function.
(arm_target_thumb_only): Use new isa bits arrays.

From-SVN: r243704
gcc/ChangeLog
gcc/common/config/arm/arm-common.c
gcc/config/arm/arm-opts.h