[GAS/ARM] Fix selected_cpu with default CPU and -mcpu
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 24 Mar 2017 13:22:16 +0000 (13:22 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 24 Mar 2017 13:23:36 +0000 (13:23 +0000)
commit62785b09987359ede74a98fac11343827f7181af
tree31cf24224c2651b368771931ee3faebd93efb39f
parentc72cea5aec39df2d7a105755691a61460ee64f59
[GAS/ARM] Fix selected_cpu with default CPU and -mcpu

When GAS is compiled with DEFAULT_CPU set and then run with a -mcpu or
-march option, selected_cpu will be set to the default CPU. This means
the -mcpu is ignored which is surprising behavior. This commit instead
sets selected_cpu from the value passed to -mcpu/-march.

2017-03-24  Thomas preud'homme  <thomas.preudhomme@arm.com>

gas/
* config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
CPU_DEFAULT is defined.
gas/ChangeLog
gas/config/tc-arm.c
This page took 0.027218 seconds and 4 git commands to generate.