Re: mips_handle_option global state avoidance, part 1

2011-05-03 Thread Richard Sandiford
"Joseph S. Myers" writes: > * config/mips/mips-opts.h: New. > * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move > to mips-opts.h. > (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove. > (mips_handle_option): Don't handle OPT_mabi_, OPT_mco

mips_handle_option global state avoidance, part 1

2011-05-03 Thread Joseph S. Myers
This patch implements the simpler parts of stopping mips_handle_option from using global state. Three options are made to use the Enum machinery instead of custom option handler code, while a fourth is adjusted to set a field through the opts pointer. The remaining (and rather more complicated) p