From fa37ed29b9a77b698c67548a82484c5fab584b07 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 4 Oct 2010 21:48:39 +0100 Subject: flags.h (g_switch_value, [...]): Remove. * flags.h (g_switch_value, g_switch_set): Remove. * opts.c (g_switch_value, g_switch_set): Remove. * config/g.opt (G): Add Var(g_switch_value). * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here. (alpha_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. (alpha_in_small_data_p): Remove cast in comparison with g_switch_value. * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast g_switch_value to unsigned HOST_WIDE_INT. * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison with g_switch_value. (frv_handle_option): Don't handle -G here. (frv_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. Don't modify g_switch_set. (frv_in_small_data_p): Remove cast in comparison with g_switch_value. * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast g_switch_value to unsigned HOST_WIDE_INT. * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here. (ia64_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): Remove. (lm32_in_small_data_p): Remove cast in comparison with g_switch_value. * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned HOST_WIDE_INT. * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here. (m32r_init): Check global_options_set.x_g_switch_value instead of g_switch_set. (m32r_in_small_data_p): Remove cast in comparison with g_switch_value. (m32r_file_start): Format g_switch_value with %d. * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT. * config/microblaze/microblaze.c (microblaze_handle_option): Don't handle -G here. (microblaze_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/mips/mips.c (mips_handle_option): Don't handle -G here. (mips_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here. (rs6000_file_start): Format g_switch_value with %d. (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in comparisons with g_switch_value. * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/score/score.c (score_handle_option): Don't handle -G here. * config/score/score3.c (score3_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. * config/score/score7.c (score7_option_override): Check global_options_set.x_g_switch_value instead of g_switch_set. From-SVN: r164960 --- gcc/config/alpha/alpha.c | 9 ++------- gcc/config/alpha/elf.h | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'gcc/config/alpha') diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index fda8c75..46627e3 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -215,11 +215,6 @@ alpha_handle_option (size_t code, const char *arg, int value) { switch (code) { - case OPT_G: - g_switch_value = value; - g_switch_set = true; - break; - case OPT_mfp_regs: if (value == 0) target_flags |= MASK_SOFT_FP; @@ -487,7 +482,7 @@ alpha_option_override (void) } /* Default the definition of "small data" to 8 bytes. */ - if (!g_switch_set) + if (!global_options_set.x_g_switch_value) g_switch_value = 8; /* Infer TARGET_SMALL_DATA from -fpic/-fPIC. */ @@ -775,7 +770,7 @@ alpha_in_small_data_p (const_tree exp) /* If this is an incomplete type with size 0, then we can't put it in sdata because it might be too big when completed. */ - if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value) + if (size > 0 && size <= g_switch_value) return true; } diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h index 57ab91e2..78b2858 100644 --- a/gcc/config/alpha/elf.h +++ b/gcc/config/alpha/elf.h @@ -121,7 +121,7 @@ do { \ #undef ASM_OUTPUT_ALIGNED_LOCAL #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \ do { \ - if ((SIZE) <= g_switch_value) \ + if ((SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \ switch_to_section (sbss_section); \ else \ switch_to_section (bss_section); \ -- cgit v1.1