aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-02-22 13:16:58 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-02-22 12:16:58 +0000
commita11f3649d785265672d61d63d099f4a445c41c45 (patch)
treee5e743fc41a77d5f4b2b341f1b9ecc60c8808caa /gcc/common
parentcaa7952a43833c6bd6b58d8432ec0a6ee1f0a945 (diff)
downloadgcc-a11f3649d785265672d61d63d099f4a445c41c45.zip
gcc-a11f3649d785265672d61d63d099f4a445c41c45.tar.gz
gcc-a11f3649d785265672d61d63d099f4a445c41c45.tar.bz2
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
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/arm/arm-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c
index 50f0bad..a404d4b 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<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)