Add "native" as a valid option value for -mcpu/-mtune= on arm (PR driver/83193).

2018-02-22  Martin Liska  <mliska@suse.cz>

	PR driver/83193
	* common/config/arm/arm-common.c (arm_print_hint_for_cpu_option):
	Add "native" as a possible value.

From-SVN: r257900
This commit is contained in:
Martin Liska 2018-02-22 13:16:58 +01:00 committed by Martin Liska
parent caa7952a43
commit a11f3649d7
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2018-02-22 Martin Liska <mliska@suse.cz>
PR driver/83193
* common/config/arm/arm-common.c (arm_print_hint_for_cpu_option):
Add "native" as a possible value.
2018-02-22 Martin Liska <mliska@suse.cz>
PR driver/83193

View File

@ -309,6 +309,12 @@ arm_print_hint_for_cpu_option (const char *target,
auto_vec<const char*> candidates;
for (; list->common.name != NULL; list++)
candidates.safe_push (list->common.name);
#ifdef HAVE_LOCAL_CPU_DETECT
/* Add also "native" as possible value. */
candidates.safe_push ("native");
#endif
char *s;
const char *hint = candidates_list_and_hint (target, s, candidates);
if (hint)