Commit 3edaf26d by Renlin Li Committed by Renlin Li

[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
parent 0b78b90e
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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment