[AArch64] Fix behaviour of -mcpu option to match ARM.
Mon Jan 20 11:15:00 GMT 2014
On 16/01/14 17:32, James Greenhalgh wrote:
> While clarifying the documentation of the -mcpu, -march and -mtune
> options for AArch64 and ARM I spotted that their behaviour is not
> This patch fixes that in the AArch64 port.
> Now, -mcpu=$CPU is treated as a shorthand for -march=arch_of_$CPU and
> -mtune=$CPU. -march and -mtune therefore override only their respective
> components of -mcpu. If the architecture picked by -march does not match
> that given by -mcpu, a warning is given.
> Regression tested on aarch64-none-elf and checked manually to
> ensure things are working as expected.
> 2014-01-16 James Greenhalgh <firstname.lastname@example.org>
> * common/config/aarch64/aarch64-common.c
> (aarch64_handle_option): Don't handle any option order logic here.
> * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
> selected_cpu, warn on architecture version mismatch.
> (aarch64_override_options): Fix parsing order for option strings.
More information about the Gcc-patches