diff options
author | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-27 15:51:42 +0000 |
---|---|---|
committer | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-27 15:51:42 +0000 |
commit | 7b2c45ae6538ba7bbef18bf87ed0fdcaf7acfafe (patch) | |
tree | 16cc4008e0df9fe3c15c38bf8dc5070785adbaf9 /gcc/common | |
parent | 54b87a557efa8705e41392f5ded9b496646fc700 (diff) | |
download | gcc-7b2c45ae6538ba7bbef18bf87ed0fdcaf7acfafe.tar.gz |
[ARM] fix big.LITTLE spec rewriting
gcc/
* common/config/arm/arm-common.c
(arm_rewrite_mcpu): Handle multiple names.
* config/arm/arm.h
(BIG_LITTLE_SPEC): Do not discard mcpu switches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/arm/arm-common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c index 065de7d8d0a..205d82ab0bc 100644 --- a/gcc/common/config/arm/arm-common.c +++ b/gcc/common/config/arm/arm-common.c @@ -86,13 +86,15 @@ arm_rewrite_selected_cpu (const char *name) /* Called by the driver to rewrite a name passed to the -mcpu argument in preparation to be passed to the assembler. The - name will be in ARGV[0], ARGC should always be 1. */ + names passed from the command line will be in ARGV, we want + to use the right-most argument, which should be in + ARGV[ARGC - 1]. ARGC should always be greater than 0. */ const char * arm_rewrite_mcpu (int argc, const char **argv) { - gcc_assert (argc == 1); - return arm_rewrite_selected_cpu (argv[0]); + gcc_assert (argc); + return arm_rewrite_selected_cpu (argv[argc - 1]); } #undef ARM_CPU_NAME_LENGTH |