From 0beb152e6adb67f8f1245a09ce3f7222244a87b2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Jul 2015 10:53:05 -0700 Subject: Add support for -mcost=iamcu --- gcc/config/i386/i386-tune.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/i386/i386-tune.c b/gcc/config/i386/i386-tune.c index 9cf702c0791..d4261a0a6a1 100644 --- a/gcc/config/i386/i386-tune.c +++ b/gcc/config/i386/i386-tune.c @@ -93,6 +93,8 @@ x86_tune_options (void) ix86_cost = &atom_cost; else if (strcmp (x86_cost_string, "slm") == 0) ix86_cost = &slm_cost; + else if (strcmp (x86_cost_string, "iamcu") == 0) + ix86_cost = &iamcu_cost; else if (strcmp (x86_cost_string, "generic") == 0) ix86_cost = &generic_cost; else if (strcmp (x86_cost_string, "core") == 0) -- cgit v1.2.1