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.greenha...@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.