[arm] Use arm_active_target for architecture and tune
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 15 Dec 2016 15:42:43 +0000 (15:42 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 15 Dec 2016 15:42:43 +0000 (15:42 +0000)
commita8e0b6c659fd78719ad21b5ee4c896ac11b1d38c
tree847db18870172b16145dade870bb6599a0bcc60b
parent8341f8c4a5ff74c482ceed872fe2e0d92a335f41
[arm] Use arm_active_target for architecture and tune

We now start to make more use of the new data structure.  This allows
us to eliminate two of the existing static variables,
arm_selected_arch and arm_selected tune.

* arm.c (arm_selected_tune): Delete static variable.
(arm_selected_arch): Likewise.
(arm_configure_build_target): Declare local versions of arm_selected
target and arm_selected_arch.  Initialize more fields in target
data structure.
(arm_option_override): Use arm_active_target instead of
arm_selected_tune and arm_selected_arch.
(asm_file_start): Use arm_active_target.

From-SVN: r243699
gcc/ChangeLog
gcc/config/arm/arm.c