[ARM 1/5 big.LITTLE] Add driver support for rewriting -mcpu names
James Greenhalgh
james.greenhalgh@arm.com
Tue Dec 17 10:41:00 GMT 2013
Hi,
This patch adds machinery to the driver to ensure that big.LITTLE
style tuning names are rewritten before they are passed to the
assembler. This reduces the coupling needed between GCC versions
and assembler versions.
The rule is simple, we truncate the CPU name at the first '.'
character we see.
Thus -mcpu=cortex-a15.cortex-a7 would be truncated to -mcpu=cortex-a15.
Bootstrapped on a ChromeBook and checked for an arm-none-eabi and
an arm-none-linux-gnueabi build.
Thanks,
James
---
gcc/
2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
* common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
(arm_rewrite_mcpu): Likewise.
* config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
* config/arm/arm.h (BIG_LITTLE_SPEC): New.
(BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
(EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
(ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
* config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM-1-5-big.LITTLE-Add-driver-support-for-rewriting-.patch
Type: text/x-patch
Size: 3799 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131217/36c78113/attachment.bin>
More information about the Gcc-patches
mailing list