[ARM] Simplify Tag_DSP_extension selection logic
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 21 Jun 2017 13:09:38 +0000 (14:09 +0100)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 21 Jun 2017 13:11:14 +0000 (14:11 +0100)
commit6c290d5387f770a6b098162f0a0f9ea420de540d
tree0f91f45bc9f50f6889c62ab693ff602a6a5d23a0
parentc168ce07e5b4a2a0258c796748899e1ba2e6dc7c
[ARM] Simplify Tag_DSP_extension selection logic

=== Context ===

This patch is part of a patch series to add support for ARMv8-R
architecture. Its purpose is to simplify the logic to decide whether to
set Tag_DSP_extension.

=== Motivation ===

To decide whether to set Tag_DSP_extension, the current code was
checking whether the flags had DSP instruction but the architecture
selected for Tag_CPU_arch did not have any. This was necessary because
extension feature bit were not available separately. This is no longer
necessary and can be simplified.

=== Patch description ===

The patch change the logic to set Tag_DSP_extension to check whether any
DSP feature bit is set in the extension feature bit, as per the
definition of that build attribute. The patch also removes all
definitions of arm_arch which is now unneeded.

2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gas/
* config/tc-arm.c (aeabi_set_public_attributes): Test *mcpu_ext_opt to
decide whether to set Tag_DSP_extension build attribute value.  Remove
now useless arm_arch variable.
gas/ChangeLog
gas/config/tc-arm.c
This page took 0.025723 seconds and 4 git commands to generate.