From a11f3649d785265672d61d63d099f4a445c41c45 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 22 Feb 2018 13:16:58 +0100 Subject: [PATCH] Add "native" as a valid option value for -mcpu/-mtune= on arm (PR driver/83193). 2018-02-22 Martin Liska PR driver/83193 * common/config/arm/arm-common.c (arm_print_hint_for_cpu_option): Add "native" as a possible value. From-SVN: r257900 --- gcc/ChangeLog | 6 ++++++ gcc/common/config/arm/arm-common.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d813f81a1a6..7503cc5b61f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-22 Martin Liska + + 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 PR driver/83193 diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c index 50f0bad3e36..a404d4b1562 100644 --- a/gcc/common/config/arm/arm-common.c +++ b/gcc/common/config/arm/arm-common.c @@ -309,6 +309,12 @@ arm_print_hint_for_cpu_option (const char *target, auto_vec 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) -- 2.30.2