diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-30 17:04:37 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-30 17:04:37 +0000 |
commit | d1e5a65f1848579742de721f3af824f32f4dcc12 (patch) | |
tree | 39c4802ab1ec2c73bfc44ddecba5aba0c73eac5a /gcc/config/lm32 | |
parent | bf62d0c286e373b851e60990c026a21394678aec (diff) | |
download | gcc-d1e5a65f1848579742de721f3af824f32f4dcc12.tar.gz |
* common.opt (-G): Don't define option here.
* config/g.opt: New.
* config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
rs6000/powerpc and score targets.
* opts.c (common_handle_option): Don't handle -G here.
* config/alpha/alpha.c (alpha_handle_option): Handle -G.
* config/frv/frv.c (frv_handle_option): Handle -G.
* config/ia64/ia64.c (ia64_handle_option): Handle -G.
* config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
New.
* config/m32r/m32r.c (m32r_handle_option): Handle -G.
* config/mips/mips.c (mips_handle_option): Handle -G.
* config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
* config/score/score.c (score_handle_option): Handle -G.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/lm32')
-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) |