This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AArch64] Fix behaviour of -mcpu option to match ARM.


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]