Re: [4.7] Avoid global state in sparc_handle_option

2011-03-25 Thread Eric Botcazou
> 2011-03-24 Joseph Myers > > * config/sparc/sparc-opts.h: New. > * config/sparc/sparc.c (sparc_handle_option, sparc_select, > sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove. > (sparc_option_override): Store processor_type enumeration rather > than string

Re: [4.7] Avoid global state in sparc_handle_option

2011-03-24 Thread Joseph S. Myers
On Thu, 17 Mar 2011, Eric Botcazou wrote: > > 2011-03-13 Joseph Myers > > > > * config/sparc/sparc-opts.h: New. > > Do you really need all the dates in there? They were the dates on sparc.h from which this file was split out. This version uses only the dates of the revisions shown by "s

Re: [4.7] Avoid global state in sparc_handle_option

2011-03-17 Thread Eric Botcazou
> 2011-03-13 Joseph Myers > > * config/sparc/sparc-opts.h: New. Do you really need all the dates in there? > * config/sparc/sparc.c (sparc_handle_option, sparc_select, > sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove. > (sparc_option_override): Store processor

[4.7] Avoid global state in sparc_handle_option

2011-03-13 Thread Joseph S. Myers
This patch, for 4.7 and relative to a tree with applied, stops the SPARC handle_option hook from using global state. Everything the hook does can be replaced by use of .opt features, so the patch removes the hook. The hook did two things: s