This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64] Fix behaviour of -mcpu option to match ARM.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: James Greenhalgh <James dot Greenhalgh at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "marcus dot shawcraft at arm dot com" <marcus dot shawcraft at arm dot com>
- Date: Mon, 20 Jan 2014 11:15:52 +0000
- Subject: Re: [AArch64] Fix behaviour of -mcpu option to match ARM.
- Authentication-results: sourceware.org; auth=none
- References: <1389893527-12594-1-git-send-email-james dot greenhalgh at arm dot com>
On 16/01/14 17:32, James Greenhalgh wrote:
>
> Hi,
>
> While clarifying the documentation of the -mcpu, -march and -mtune
> options for AArch64 and ARM I spotted that their behaviour is not
> consistent.
>
> 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.
>
> OK?
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2014-01-16 James Greenhalgh <james.greenhalgh@arm.com>
>
> * 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.
>
>
OK.
R.