[arm] Use arm_active_target when configuring builtins
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 15 Dec 2016 15:46:41 +0000 (15:46 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 15 Dec 2016 15:46:41 +0000 (15:46 +0000)
commit7d0ce9412cf8f961f4e517fef036b2d6bba2dea6
treeb74fc1cc3f5452e98e7d2cc57ea1fcbee10a17de
parent199acf6cfbc3fdd7eca990c817752f32b17c7b4d
[arm] Use arm_active_target when configuring builtins

This patch uses the new ISA data structure to determine which builtins
to add.  It entirely eliminates the need for insn_flags to be a global
variable, but we're about to delete that in the following patches, so
for now we leave it as a global.

* arm-builtins.c: Include sbitmap.h.
(def_mbuiltin): Change first parameter to a flag bit.  Use it to test
available features in the current target.
(struct builtin_description): Change type of feature field.
(IWMMXT_BUILTIN): Use the isa_features types.
(IWMMXT2_BUILTIN): Likewise.
(IWMMXT_BUILTIN2): Likewise.
(IWMMXT2_BUILTIN2): Likewise.
(CRC32_BUILTIN): Likewise.
(CRYPTO_BUILTIN): Likewise.
(iwmmx_builtin): Likewise.
(iwmmx2_builtin): Likewise.
(arm_iwmmxt_builtin): Check for specific feature bits.

From-SVN: r243702
gcc/ChangeLog
gcc/config/arm/arm-builtins.c