From 3edaf26de0dd7a7475646809d1e2841be665a59c Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Fri, 5 Dec 2014 15:54:57 +0000 Subject: [PATCH] [AArch64] Use selected cpu's tuning when no tuning parameter is specified gcc/ 2014-12-05 Renlin Li * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define selected_tune. (aarch64_override_options): Use selected_cpu's tuning. From-SVN: r218425 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06f775da2e3..a8f92da0852 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-05 Renlin Li + + * 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 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 9f7cccc2231..d3ef770a6cb 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; -- 2.30.2