diff options
author | Renlin Li <renlin.li@arm.com> | 2014-12-05 15:54:57 +0000 |
---|---|---|
committer | Renlin Li <renlin@gcc.gnu.org> | 2014-12-05 15:54:57 +0000 |
commit | 3edaf26de0dd7a7475646809d1e2841be665a59c (patch) | |
tree | 9321b8dc019f441d46ec2e31d4dfebbd3365e81d | |
parent | 0b78b90e51560e553211bb5d80bf83bcfc6e23a4 (diff) | |
download | gcc-3edaf26de0dd7a7475646809d1e2841be665a59c.zip gcc-3edaf26de0dd7a7475646809d1e2841be665a59c.tar.gz gcc-3edaf26de0dd7a7475646809d1e2841be665a59c.tar.bz2 |
[AArch64] Use selected cpu's tuning when no tuning parameter is specified
gcc/
2014-12-05 Renlin Li <renlin.li@arm.com>
* config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
selected_tune.
(aarch64_override_options): Use selected_cpu's tuning.
From-SVN: r218425
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06f775d..a8f92da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-05 Renlin Li <renlin.li@arm.com> + + * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define + selected_tune. + (aarch64_override_options): Use selected_cpu's tuning. + 2014-12-05 David Edelsohn <dje.gcc@gmail.com> * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 9f7cccc..d3ef770 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6625,7 +6625,6 @@ aarch64_parse_cpu (void) if (strlen (cpu->name) == len && strncmp (cpu->name, str, len) == 0) { selected_cpu = cpu; - selected_tune = cpu; aarch64_isa_flags = selected_cpu->flags; if (ext != NULL) @@ -6721,9 +6720,8 @@ aarch64_override_options (void) gcc_assert (selected_cpu); - /* The selected cpu may be an architecture, so lookup tuning by core ID. */ if (!selected_tune) - selected_tune = &all_cores[selected_cpu->core]; + selected_tune = selected_cpu; aarch64_tune_flags = selected_tune->flags; aarch64_tune = selected_tune->core; |