diff options
Diffstat (limited to 'gcc/config/lm32/lm32.c')
-rw-r--r-- | gcc/config/lm32/lm32.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gcc/config/lm32/lm32.c b/gcc/config/lm32/lm32.c index a40df6f0655..2bcbe679950 100644 --- a/gcc/config/lm32/lm32.c +++ b/gcc/config/lm32/lm32.c @@ -1,7 +1,7 @@ /* Subroutines used for code generation on the Lattice Mico32 architecture. Contributed by Jon Beniston <jon@beniston.com> - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -75,7 +75,10 @@ static bool lm32_can_eliminate (const int, const int); static bool lm32_legitimate_address_p (enum machine_mode mode, rtx x, bool strict); static HOST_WIDE_INT lm32_compute_frame_size (int size); +static bool lm32_handle_option (size_t code, const char *arg, int value); +#undef TARGET_HANDLE_OPTION +#define TARGET_HANDLE_OPTION lm32_handle_option #undef TARGET_ADDRESS_COST #define TARGET_ADDRESS_COST hook_int_rtx_bool_0 #undef TARGET_RTX_COSTS @@ -696,6 +699,23 @@ lm32_setup_incoming_varargs (CUMULATIVE_ARGS * cum, enum machine_mode mode, } } +/* Implement TARGET_HANDLE_OPTION. */ + +static bool +lm32_handle_option (size_t code, const char *arg ATTRIBUTE_UNUSED, int value) +{ + switch (code) + { + case OPT_G: + g_switch_value = value; + g_switch_set = true; + return true; + + default: + return true; + } +} + /* Override command line options. */ void lm32_override_options (void) |