From: Martin Liska Date: Thu, 22 Feb 2018 12:16:58 +0000 (+0100) Subject: Add "native" as a valid option value for -mcpu/-mtune= on arm (PR driver/83193). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a11f3649d785265672d61d63d099f4a445c41c45;p=gcc.git 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 --- 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)